mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
ci: update golangci-lint to v1.62.2
- gomnd is replaced by mnd in v1.58.0 - gosec exlcude G115 rule (Potential integer overflow when converting between integer types) - disable new iface linter - disable new recvcheck linter Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -128,6 +128,10 @@ linters-settings:
|
||||
- dupImport # https://github.com/go-critic/go-critic/issues/845
|
||||
# TODO: uncheckedInlineErr gives many false-positives
|
||||
- uncheckedInlineErr
|
||||
gosec:
|
||||
excludes:
|
||||
# TODO: G115 gives many false-positives
|
||||
- G115 # Potential integer overflow when converting between integer types
|
||||
unused:
|
||||
# treat code as a program (not a library) and report unused exported
|
||||
# identifiers; default is false.
|
||||
@ -197,6 +201,7 @@ linters:
|
||||
- wrapcheck
|
||||
# TODO: enable linters added in golangci-lint 1.43
|
||||
- contextcheck
|
||||
- mnd
|
||||
- gomnd
|
||||
- ireturn
|
||||
- tagliatelle
|
||||
@ -208,3 +213,6 @@ linters:
|
||||
- containedctx
|
||||
# TODO: depguard requires a list of (un)acceptable imports
|
||||
- depguard
|
||||
# TODO enable linters added in golangci-lint 1.60
|
||||
- iface
|
||||
- recvcheck
|
||||
|
Reference in New Issue
Block a user