github.com/phsym/gomarkdoc@v0.5.4/.golangci.yml (about) 1 linters: 2 enable: 3 - bodyclose 4 - gochecknoinits 5 - gocritic 6 - gocyclo 7 - goimports 8 - govet 9 - lll 10 - misspell 11 - revive 12 - unconvert 13 14 # Not currently compatible with go 1.18 15 disable: 16 - gosimple 17 - staticcheck 18 - structcheck 19 - unused 20 21 linters-settings: 22 gocyclo: 23 min-complexity: 15 24 lll: 25 tab-width: 4 26 nakedret: 27 max-func-lines: 10 28 revive: 29 min-confidence: 0.5 30 31 issues: 32 exclude-rules: 33 # Exclude assertion lines in tests from line length 34 - path: "_test\\.go" 35 linters: 36 - lll 37 source: "^\\s*is." 38 39 # Exclude documentation files from line length 40 - path: "doc\\.go" 41 linters: 42 - lll 43 44 exclude: 45 # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok 46 - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked 47 48 exclude-use-default: false