You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// wantedErrors parses expected errors from comments in a file.// nolint:gocyclo,nakedret,whitespacefuncwantedErrors(file, shortstring) (errs []wantedError) {
or
// wantedErrors parses expected errors from comments in a file.// nolint:nakedret,gocyclo,whitespacefuncwantedErrors(file, shortstring) (errs []wantedError) {
or
// wantedErrors parses expected errors from comments in a file.// nolint:gocyclo,whitespace,nakedretfuncwantedErrors(file, shortstring) (errs []wantedError) {
results:
WARN Line 163 has multiple intersecting issues: []result.Issue{result.Issue{FromLinter:"nolintlint", Text:"directive `// nolint:gocyclo,nakedret,whitespace` is unused for linter \"gocyclo\"", Severity:"", SourceLines:[]string{"// nolint:gocyclo,nakedret,whitespace"}, Replacement:(*result.Replacement)(0xc0074e3ec0), Pkg:(*packages.Package)(0xc0012b3b00), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"test/errchk.go", Offset:4489, Line:163, Column:1}, HunkPos:0, ExpectNoLint:true, ExpectedNoLintLinter:"gocyclo"}, result.Issue{FromLinter:"nolintlint", Text:"directive `// nolint:gocyclo,nakedret,whitespace` is unused for linter \"whitespace\"", Severity:"", SourceLines:[]string{"// nolint:gocyclo,nakedret,whitespace"}, Replacement:(*result.Replacement)(0xc0074e3f20), Pkg:(*packages.Package)(0xc0012b3b00), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"test/errchk.go", Offset:4489, Line:163, Column:1}, HunkPos:0, ExpectNoLint:true, ExpectedNoLintLinter:"whitespace"}}
no fix applied.
KO
The text was updated successfully, but these errors were encountered:
…nolint statements (#1573)" (#1584)
This reverts commit aeb9830.
There are some cases that nolinter fixer wasn't handling properly or expectedly (#1579, #1580, #1581) so we'll fix those in a new attempt.
Related to #1573
before the fix:
or
or
results:
no fix applied.
KO
The text was updated successfully, but these errors were encountered: