Adding gosec and lint, fixing null_type overflow
ChangeLog: - Adding gosec linting - Adding static type to enum - fixing nulltype overflow - Trying out gotestsum as an alternative to go-junit-report.xml
This commit is contained in:
parent
f9358ca8d2
commit
f7082eda68
16 changed files with 193 additions and 93 deletions
19
.golangci.yml
Normal file
19
.golangci.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
run:
|
||||
# The default concurrency value is the number of available CPU.
|
||||
concurrency: 4
|
||||
# Timeout for analysis, e.g. 30s, 5m.
|
||||
# Default: 1m
|
||||
timeout: 30m
|
||||
# Exit code when at least one issue was found.
|
||||
# Default: 1
|
||||
issues-exit-code: 2
|
||||
# Include test files or not.
|
||||
# Default: true
|
||||
tests: false
|
||||
|
||||
issues:
|
||||
exclude-dirs:
|
||||
- tests
|
||||
exclude-files:
|
||||
- "_test.go"
|
||||
- "testutils.go"
|
||||
Loading…
Add table
Add a link
Reference in a new issue