github.com/safing/portbase@v0.19.5/.golangci.yml (about) 1 # Docs: 2 # https://golangci-lint.run/usage/linters/ 3 4 linters: 5 enable-all: true 6 disable: 7 - containedctx 8 - contextcheck 9 - cyclop 10 - depguard 11 - exhaustivestruct 12 - exhaustruct 13 - forbidigo 14 - funlen 15 - gochecknoglobals 16 - gochecknoinits 17 - gocognit 18 - gocyclo 19 - goerr113 20 - gomnd 21 - ifshort 22 - interfacebloat 23 - interfacer 24 - ireturn 25 - lll 26 - musttag 27 - nestif 28 - nilnil 29 - nlreturn 30 - noctx 31 - nolintlint 32 - nonamedreturns 33 - nosnakecase 34 - revive 35 - tagliatelle 36 - testpackage 37 - varnamelen 38 - whitespace 39 - wrapcheck 40 - wsl 41 42 linters-settings: 43 revive: 44 # See https://github.com/mgechev/revive#available-rules for details. 45 enable-all-rules: true 46 gci: 47 # put imports beginning with prefix after 3rd-party packages; 48 # only support one prefix 49 # if not set, use goimports.local-prefixes 50 local-prefixes: github.com/safing 51 godox: 52 # report any comments starting with keywords, this is useful for TODO or FIXME comments that 53 # might be left in the code accidentally and should be resolved before merging 54 keywords: 55 - FIXME 56 gosec: 57 # To specify a set of rules to explicitly exclude. 58 # Available rules: https://github.com/securego/gosec#available-rules 59 excludes: 60 - G204 # Variables in commands. 61 - G304 # Variables in file paths. 62 - G505 # We need crypto/sha1 for non-security stuff. Using `nolint:` triggers another linter. 63 64 issues: 65 exclude-use-default: false 66 exclude-rules: 67 - text: "a blank import .*" 68 linters: 69 - golint 70 - text: "ST1000: at least one file in a package should have a package comment.*" 71 linters: 72 - stylecheck