1run: 2 tests: true 3 4output: 5 print-issued-lines: false 6 7linters: 8 enable-all: true 9 disable: 10 - maligned 11 - lll 12 - gochecknoglobals 13 - wsl 14 - funlen 15 - gocognit 16 - gomnd 17 - goprintffuncname 18 19linters-settings: 20 govet: 21 check-shadowing: true 22 dupl: 23 threshold: 100 24 goconst: 25 min-len: 5 26 min-occurrences: 3 27 gocyclo: 28 min-complexity: 20 29 30issues: 31 max-per-linter: 0 32 max-same: 0 33 exclude-use-default: false 34 exclude: 35 - '^(G104|G204):' 36 # Very commonly not checked. 37 - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked' 38 - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON) should have comment or be unexported' 39 - 'composite literal uses unkeyed fields' 40 - 'bad syntax for struct tag key' 41 - 'bad syntax for struct tag pair' 42 - 'result .* \(error\) is always nil' 43