github.com/lestrrat-go/jwx/v2@v2.0.21/.golangci.yml (about) 1 run: 2 3 linters-settings: 4 govet: 5 enable-all: true 6 disable: 7 - shadow 8 - fieldalignment 9 10 linters: 11 enable-all: true 12 disable: 13 - cyclop 14 - deadcode # deprecated 15 - depguard 16 - dupl 17 - exhaustive 18 - exhaustivestruct 19 - errorlint 20 - funlen 21 - gci 22 - gochecknoglobals 23 - gochecknoinits 24 - gocognit 25 - gocritic 26 - gocyclo 27 - godot 28 - godox 29 - goerr113 30 - gofumpt 31 - golint #deprecated 32 - gomnd 33 - gosec 34 - govet 35 - interfacer # deprecated 36 - ifshort 37 - ireturn # No, I _LIKE_ returning interfaces 38 - lll 39 - maintidx # Do this in code review 40 - maligned # deprecated 41 - makezero 42 - nakedret 43 - nestif 44 - nlreturn 45 - nonamedreturns # visit this back later 46 - nosnakecase 47 - paralleltest 48 - scopelint # deprecated 49 - structcheck # deprecated 50 - tagliatelle 51 - testpackage 52 - thelper # Tests are fine 53 - varcheck # deprecated 54 - varnamelen # Short names are ok 55 - wrapcheck 56 - wsl 57 58 issues: 59 exclude-rules: 60 # not needed 61 - path: /*.go 62 text: "ST1003: should not use underscores in package names" 63 linters: 64 - stylecheck 65 - path: /*.go 66 text: "don't use an underscore in package name" 67 linters: 68 - revive 69 - path: /*.go 70 linters: 71 - contextcheck 72 - exhaustruct 73 - path: /main.go 74 linters: 75 - errcheck 76 - path: internal/codegen/codegen.go 77 linters: 78 - errcheck 79 - path: internal/jwxtest/jwxtest.go 80 linters: 81 - errcheck 82 - errchkjson 83 - forcetypeassert 84 - path: /*_test.go 85 linters: 86 - errcheck 87 - errchkjson 88 - forcetypeassert 89 - path: /*_example_test.go 90 linters: 91 - forbidigo 92 - path: cmd/jwx/jwx.go 93 linters: 94 - forbidigo 95 96 # Maximum issues count per one linter. Set to 0 to disable. Default is 50. 97 max-issues-per-linter: 0 98 99 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. 100 max-same-issues: 0 101