Skip to content

Commit

Permalink
Merge pull request #194 from miles170/cron-generate-securities-list
Browse files Browse the repository at this point in the history
[Scheduled] Update securities list
  • Loading branch information
miles170 authored Aug 18, 2024
2 parents d6dd5f8 + 79c4a03 commit e92d9cc
Show file tree
Hide file tree
Showing 3 changed files with 1,165 additions and 1,018 deletions.
14 changes: 6 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
run:
timeout: 10m
linters:
enable:
- dogsled
Expand All @@ -17,11 +19,7 @@ linters:
- ineffassign
- unused
issues:
exclude:
- "undefined: Securities"
run:
# Autogenerated files take too much time and memory to load,
# even if we skip them with skip-dirs.
# So we define this tag and use it in the autogenerated files.
build-tags:
- codeanalysis
exclude-rules:
- linters:
- dupl
path: _test\.go
1 change: 0 additions & 1 deletion scripts/generate_securities.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func main() {
}

fmt.Fprintf(w, "// Code generated security DO NOT EDIT.\n\n")
fmt.Fprintf(w, "//go:build !codeanalysis\n\n")
fmt.Fprintf(w, "package %s\n\n", "twstock")
fmt.Fprint(w, "import \"github.com/golang-sql/civil\"\n\n")
fmt.Fprintf(w, "var Securities = map[string]Security{\n")
Expand Down
Loading

0 comments on commit e92d9cc

Please sign in to comment.