File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,9 +243,9 @@ linters-settings:
243
243
allow-leading-space : true
244
244
# Exclude following linters from requiring an explanation. Default is [].
245
245
allow-no-explanation : []
246
- # Enable to require an explanation after each nolint directive. Default is false.
246
+ # Enable to require an explanation of nonzero length after each nolint directive. Default is false.
247
247
require-explanation : true
248
- # Enable to require an explanation after each nolint directive . Default is false.
248
+ # Enable to require nolint directives to mention the specific linter being suppressed . Default is false.
249
249
require-specific : true
250
250
rowserrcheck :
251
251
packages :
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
275
275
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
276
276
linter .NewConfig (golinters .NewNoLintLint ()).
277
277
WithPresets (linter .PresetStyle ).
278
- WithURL ("https://github.com/golangci-lint/pkg/golinters/nolintlint" ),
278
+ WithURL ("https://github.com/golangci/golangci -lint/blob/master/ pkg/golinters/nolintlint/README.md " ),
279
279
}
280
280
281
281
isLocalRun := os .Getenv ("GOLANGCI_COM_RUN" ) == ""
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ func TestNolintUnused(t *testing.T) {
258
258
return NewNolint (log , dbManager , enabledLintersMap )
259
259
}
260
260
261
- // the issues below the nolintlint issues that would be generated for the test file
261
+ // the issue below is the nolintlint issue that would be generated for the test file
262
262
nolintlintIssueVarcheck := result.Issue {
263
263
Pos : token.Position {
264
264
Filename : fileName ,
You can’t perform that action at this time.
0 commit comments