mirror of
https://github.com/cheat/cheat.git
synced 2024-11-17 09:28:29 +01:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
|
run:
|
||
|
tests: true
|
||
|
skip-dirs:
|
||
|
- _examples
|
||
|
|
||
|
output:
|
||
|
print-issued-lines: false
|
||
|
|
||
|
linters:
|
||
|
enable-all: true
|
||
|
disable:
|
||
|
- maligned
|
||
|
- megacheck
|
||
|
- lll
|
||
|
- gocyclo
|
||
|
- dupl
|
||
|
- gochecknoglobals
|
||
|
|
||
|
linters-settings:
|
||
|
govet:
|
||
|
check-shadowing: true
|
||
|
gocyclo:
|
||
|
min-complexity: 10
|
||
|
dupl:
|
||
|
threshold: 100
|
||
|
goconst:
|
||
|
min-len: 8
|
||
|
min-occurrences: 3
|
||
|
|
||
|
issues:
|
||
|
max-per-linter: 0
|
||
|
max-same: 0
|
||
|
exclude-use-default: false
|
||
|
exclude:
|
||
|
# Captured by errcheck.
|
||
|
- '^(G104|G204):'
|
||
|
# Very commonly not checked.
|
||
|
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
|
||
|
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
|
||
|
- 'composite literal uses unkeyed fields'
|
||
|
- 'declaration of "err" shadows declaration'
|
||
|
- 'should not use dot imports'
|
||
|
- 'Potential file inclusion via variable'
|
||
|
- 'should have comment or be unexported'
|
||
|
- 'comment on exported var .* should be of the form'
|