@@ -1372,7 +1372,7 @@ linters:
1372
1372
- G504 # Import blocklist: net/http/cgi
1373
1373
- G505 # Import blocklist: crypto/sha1
1374
1374
- G506 # Import blocklist: golang.org/x/crypto/md4
1375
- - G507 # Import blocklist: golang.org/x/crypto/ripemd160
1375
+ - G507 # Import blocklist: golang.org/x/crypto/ripemd160
1376
1376
- G601 # Implicit memory aliasing of items from a range statement
1377
1377
- G602 # Slice access out of bounds
1378
1378
@@ -1417,7 +1417,7 @@ linters:
1417
1417
- G504 # Import blocklist: net/http/cgi
1418
1418
- G505 # Import blocklist: crypto/sha1
1419
1419
- G506 # Import blocklist: golang.org/x/crypto/md4
1420
- - G507 # Import blocklist: golang.org/x/crypto/ripemd160
1420
+ - G507 # Import blocklist: golang.org/x/crypto/ripemd160
1421
1421
- G601 # Implicit memory aliasing of items from a range statement
1422
1422
- G602 # Slice access out of bounds
1423
1423
@@ -3983,6 +3983,23 @@ formatters:
3983
3983
# Default: true
3984
3984
chain-split-dots : false
3985
3985
3986
+ exclusions :
3987
+ # Mode of the generated files analysis.
3988
+ #
3989
+ # - `strict`: sources are excluded by strictly following the Go generated file convention.
3990
+ # Source files that have lines matching only the following regular expression will be excluded: `^// Code generated .* DO NOT EDIT\.$`
3991
+ # This line must appear before the first non-comment, non-blank text in the file.
3992
+ # https://go.dev/s/generatedcode
3993
+ # - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.
3994
+ # - `disable`: disable the generated files exclusion.
3995
+ #
3996
+ # Default: lax
3997
+ generated : strict
3998
+ # Which file paths to exclude.
3999
+ # Default: []
4000
+ paths :
4001
+ - " .*\\ .my\\ .go$"
4002
+ - lib/bad.go
3986
4003
3987
4004
issues :
3988
4005
# Maximum issues count per one linter.
0 commit comments