2019-12-27 19:35:43 +01:00
|
|
|
linters-settings:
|
|
|
|
|
godox:
|
|
|
|
|
keywords: # default keywords are TODO, BUG, and FIXME, but we override this by ignoring TODO
|
|
|
|
|
- BUG
|
|
|
|
|
- FIXME
|
|
|
|
|
funlen:
|
|
|
|
|
lines: 100
|
|
|
|
|
statements: 80
|
2021-02-19 14:54:31 +01:00
|
|
|
cyclop:
|
|
|
|
|
# the minimal code complexity to report
|
|
|
|
|
max-complexity: 20
|
2019-12-27 19:35:43 +01:00
|
|
|
|
|
|
|
|
issues:
|
|
|
|
|
exclude-use-default: false
|
|
|
|
|
exclude:
|
|
|
|
|
- Using the variable on range scope `tt` in function literal
|
2020-04-28 13:55:36 +02:00
|
|
|
- GetJsonSHA256Fingerprints should be GetJSONSHA256Fingerprints
|
|
|
|
|
- ST1003 # CamelCase variables; see constants/cipher.go
|
2019-12-27 19:35:43 +01:00
|
|
|
|
|
|
|
|
linters:
|
2020-04-28 13:55:36 +02:00
|
|
|
enable-all: true
|
2019-12-27 19:35:43 +01:00
|
|
|
disable:
|
2020-04-28 13:55:36 +02:00
|
|
|
- dupl # Tool for code clone detection [fast: true, auto-fix: false]
|
|
|
|
|
- gochecknoglobals # Checks that no globals are present in Go code [fast: true, auto-fix: false]
|
|
|
|
|
- gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix: false]
|
|
|
|
|
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: true, auto-fix: false]
|
2020-05-06 18:50:18 +02:00
|
|
|
- goerr113 # Golang linter to check the errors handling expressions [fast: true, auto-fix: false]
|
2020-04-28 13:55:36 +02:00
|
|
|
- gomnd # An analyzer to detect magic numbers. [fast: true, auto-fix: false]
|
|
|
|
|
- lll # Reports long lines [fast: true, auto-fix: false]
|
|
|
|
|
- testpackage # Makes you use a separate _test package [fast: true, auto-fix: false]
|
2019-12-27 19:35:43 +01:00
|
|
|
- wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
|
2020-07-10 00:31:57 +07:00
|
|
|
- gofumpt # Enforce a stricter format than gofmt
|
2020-08-04 11:08:31 +02:00
|
|
|
- gci # Enforce blank lines check
|
|
|
|
|
- nlreturn # Enforce blank lines for return statements
|
2020-10-29 12:42:32 +01:00
|
|
|
- exhaustivestruct # Enforce structures to be fully filled on instantiation - terrible with openpgp configs
|
2021-01-08 18:37:56 +01:00
|
|
|
- paralleltest # Detects missing usage of t.Parallel() method in your Go test
|
|
|
|
|
- forbidigo # Static analysis tool to forbid use of particular identifiers
|
2021-02-19 14:54:31 +01:00
|
|
|
- thelper # Enforce test helper formatting
|
|
|
|
|
- revive # Force CamelCase instead of all caps
|
2021-03-08 17:59:03 +01:00
|
|
|
- nilerr # Force return err when not nil
|