Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/docs/usage/false-positives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var bad_name int //nolint:all
To exclude issues from specific linters only:

```go
var bad_name int //nolint:golint,unused
var bad_name int //nolint:wsl,unused
```

To exclude issues for the block of code use this directive on the beginning of a line:
Expand Down
2 changes: 1 addition & 1 deletion pkg/result/processors/nolint_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestTestNolintFilter_Process(t *testing.T) {
processAssertEmpty(t, p, newNolintFileIssue(6, "any"))
processAssertEmpty(t, p, newNolintFileIssue(7, "any"))

processAssertSame(t, p, newNolintFileIssue(1, "golint")) // no directive
processAssertSame(t, p, newNolintFileIssue(1, "wsl")) // no directive

// test preceding comments
processAssertEmpty(t, p, newNolintFileIssue(10, "any")) // preceding comment for var
Expand Down
Loading