|
30 | 30 | # won't be reported. Default value is empty list, but there is
|
31 | 31 | # no need to include all autogenerated files, we confidently recognize
|
32 | 32 | # autogenerated files. If it's not please let us know.
|
33 |
| - skip-files: |
| 33 | + # skip-files: |
34 | 34 | # - ".*\\.my\\.go$"
|
35 | 35 | # - lib/bad.go
|
36 | 36 |
|
@@ -64,7 +64,7 @@ linters-settings:
|
64 | 64 |
|
65 | 65 | # path to a file containing a list of functions to exclude from checking
|
66 | 66 | # see https://github.com/kisielk/errcheck#excluding-functions for details
|
67 |
| - exclude: |
| 67 | + # exclude: |
68 | 68 |
|
69 | 69 | funlen:
|
70 | 70 | lines: 60
|
@@ -133,21 +133,29 @@ linters-settings:
|
133 | 133 | # minimal occurrences count to trigger, 3 by default
|
134 | 134 | min-occurrences: 5
|
135 | 135 | depguard:
|
136 |
| - list-type: denylist |
137 |
| - include-go-root: false |
138 |
| - packages-with-error-message: |
139 |
| - - "github.com/Sirupsen/logrus": "must use github.com/dapr/kit/logger" |
140 |
| - - "github.com/agrea/ptr": "must use github.com/dapr/kit/ptr" |
141 |
| - - "go.uber.org/atomic": "must use sync/atomic" |
142 |
| - - "github.com/pkg/errors": "must use standard library (errors package and/or fmt.Errorf)" |
143 |
| - - "github.com/cenkalti/backoff": "must use github.com/cenkalti/backoff/v4" |
144 |
| - - "github.com/cenkalti/backoff/v2": "must use github.com/cenkalti/backoff/v4" |
145 |
| - - "github.com/cenkalti/backoff/v3": "must use github.com/cenkalti/backoff/v4" |
| 136 | + rules: |
| 137 | + main: |
| 138 | + deny: |
| 139 | + - pkg: "github.com/Sirupsen/logrus" |
| 140 | + desc: "you must use github.com/dapr/kit/logger" |
| 141 | + - pkg: "github.com/agrea/ptr" |
| 142 | + desc: "you must use github.com/dapr/kit/ptr" |
| 143 | + - pkg: "go.uber.org/atomic" |
| 144 | + desc: "you must use sync/atomic" |
| 145 | + - pkg: "github.com/pkg/errors" |
| 146 | + desc: "you must use the standard library (errors package and/or fmt.Errorf)" |
| 147 | + - pkg: "github.com/cenkalti/backoff" |
| 148 | + desc: "you must use github.com/cenkalti/backoff/v4" |
| 149 | + - pkg: "github.com/cenkalti/backoff/v2" |
| 150 | + desc: "you must use github.com/cenkalti/backoff/v4" |
| 151 | + - pkg: "github.com/cenkalti/backoff/v3" |
| 152 | + desc: "you must use github.com/cenkalti/backoff/v4" |
146 | 153 | misspell:
|
147 | 154 | # Correct spellings using locale preferences for US or UK.
|
148 |
| - # Default is to use a neutral variety of English. |
| 155 | + # Default is to use a neutral variety of English. (Do not specify a locale value) |
149 | 156 | # Setting locale to US will correct the British spelling of 'colour' to 'color'.
|
150 |
| - locale: default |
| 157 | + # locale: |
| 158 | + |
151 | 159 | ignore-words:
|
152 | 160 | - someword
|
153 | 161 | lll:
|
@@ -185,7 +193,7 @@ linters-settings:
|
185 | 193 | # See https://go-critic.github.io/overview#checks-overview
|
186 | 194 | # To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`
|
187 | 195 | # By default list of stable checks is used.
|
188 |
| - enabled-checks: |
| 196 | + # enabled-checks: |
189 | 197 |
|
190 | 198 | # Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
|
191 | 199 | disabled-checks:
|
|
0 commit comments