Skip to content

Commit be034aa

Browse files
authored
dev: enable gocheckcompilerdirectives linter (#4114)
1 parent e641317 commit be034aa

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ linters:
8484
- errcheck
8585
- exportloopref
8686
- funlen
87+
- gocheckcompilerdirectives
8788
- gochecknoinits
8889
- goconst
8990
- gocritic

test/ruleguard/dup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// go:build ruleguard
1+
//go:build ruleguard
2+
23
package ruleguard
34

45
import "github.com/quasilyte/go-ruleguard/dsl"

test/ruleguard/rangeExprCopy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// go:build ruleguard
1+
//go:build ruleguard
2+
23
package ruleguard
34

45
import (

test/ruleguard/strings_simplify.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// go:build ruleguard
1+
//go:build ruleguard
2+
23
package ruleguard
34

45
import "github.com/quasilyte/go-ruleguard/dsl"

0 commit comments

Comments
 (0)