github.com/abemedia/go-don@v0.2.2-0.20240329015135-be88e32bb73b/.golangci.yml (about) 1 linters: 2 enable-all: true 3 disable: 4 - deadcode # deprecated 5 - depguard 6 - exhaustive 7 - exhaustivestruct # deprecated 8 - exhaustruct 9 - gochecknoinits 10 - gochecknoglobals 11 - godox 12 - golint # deprecated 13 - gomnd 14 - interfacer # deprecated 15 - ireturn 16 - maligned # deprecated 17 - nilnil 18 - nosnakecase # deprecated 19 - nlreturn 20 - paralleltest 21 - scopelint # deprecated 22 - structcheck # deprecated 23 - varnamelen 24 - varcheck # deprecated 25 - wrapcheck 26 - wsl 27 28 linters-settings: 29 gomodguard: 30 blocked: 31 modules: 32 - encoding/json: 33 recommendations: 34 - github.com/goccy/go-json 35 - github.com/pkg/errors: 36 recommendations: 37 - errors 38 gofmt: 39 rewrite-rules: 40 - pattern: interface{} 41 replacement: any 42 gofumpt: 43 extra-rules: true 44 govet: 45 enable-all: true 46 nolintlint: 47 require-specific: true 48 49 issues: 50 include: 51 - EXC0013 52 - EXC0014 53 exclude-rules: 54 - path: (.+)_test.go 55 linters: 56 - cyclop 57 - forcetypeassert 58 - funlen 59 - goconst 60 - goerr113 61 - gosec 62 - path: ((.+)_test.go|internal/test/(.+)) 63 linters: [govet] 64 text: '^fieldalignment:' 65 - path: ((.+)_test.go|internal/test/(.+)) 66 linters: [revive] 67 text: '^unused-parameter:' 68 - linters: [govet] 69 text: '^shadow: declaration of "err" shadows declaration'