Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
4 changes: 2 additions & 2 deletions .custom-gcl.reference.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The golangci-lint version used to build the custom binary.
# Require.
version: v1.56.2
# Required.
version: v2.0.0

# The name of the custom binary.
# Optional.
Expand Down
21 changes: 19 additions & 2 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ linters:
- G504 # Import blocklist: net/http/cgi
- G505 # Import blocklist: crypto/sha1
- G506 # Import blocklist: golang.org/x/crypto/md4
- G507 #Import blocklist: golang.org/x/crypto/ripemd160
- G507 # Import blocklist: golang.org/x/crypto/ripemd160
- G601 # Implicit memory aliasing of items from a range statement
- G602 # Slice access out of bounds

Expand Down Expand Up @@ -1417,7 +1417,7 @@ linters:
- G504 # Import blocklist: net/http/cgi
- G505 # Import blocklist: crypto/sha1
- G506 # Import blocklist: golang.org/x/crypto/md4
- G507 #Import blocklist: golang.org/x/crypto/ripemd160
- G507 # Import blocklist: golang.org/x/crypto/ripemd160
- G601 # Implicit memory aliasing of items from a range statement
- G602 # Slice access out of bounds

Expand Down Expand Up @@ -3983,6 +3983,23 @@ formatters:
# Default: true
chain-split-dots: false

exclusions:
# Mode of the generated files analysis.
#
# - `strict`: sources are excluded by strictly following the Go generated file convention.
# Source files that have lines matching only the following regular expression will be excluded: `^// Code generated .* DO NOT EDIT\.$`
# This line must appear before the first non-comment, non-blank text in the file.
# https://go.dev/s/generatedcode
# - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.
# - `disable`: disable the generated files exclusion.
#
# Default: lax
generated: strict
# Which file paths to exclude.
# Default: []
paths:
- ".*\\.my\\.go$"
- lib/bad.go

issues:
# Maximum issues count per one linter.
Expand Down
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ linters:
linters: [gosec]
text: "G115: integer overflow conversion uint64 -> int"

# The files created during the tests don't need to be secured.
- path: scripts/website/expand_templates/linters_test.go
linters: [gosec]
text: "G306: Expect WriteFile permissions to be 0600 or less"

formatters:
enable:
- gofmt
Expand Down
4 changes: 2 additions & 2 deletions assets/cli-help.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/exclusion-presets.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions assets/formatters-info.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading