Skip to content

Commit 8aafbc5

Browse files
committed
docs: replace golint with staticcheck in nolint example
1 parent 928a7d5 commit 8aafbc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/docs/usage/false-positives.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var bad_name int //nolint:all
122122
To exclude issues from specific linters only:
123123

124124
```go
125-
var bad_name int //nolint:golint,unused
125+
var bad_name int //nolint:staticcheck,unused
126126
```
127127

128128
To exclude issues for the block of code use this directive on the beginning of a line:

pkg/result/processors/nolint_filter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestTestNolintFilter_Process(t *testing.T) {
6363
processAssertEmpty(t, p, newNolintFileIssue(6, "any"))
6464
processAssertEmpty(t, p, newNolintFileIssue(7, "any"))
6565

66-
processAssertSame(t, p, newNolintFileIssue(1, "golint")) // no directive
66+
processAssertSame(t, p, newNolintFileIssue(1, "staticcheck")) // no directive
6767

6868
// test preceding comments
6969
processAssertEmpty(t, p, newNolintFileIssue(10, "any")) // preceding comment for var

0 commit comments

Comments
 (0)