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
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
|
- 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]
|