chore(golangci) [skip ci]: bump golangci-lint config to v1.63.4
This commit is contained in:
parent
be886b5cc8
commit
afefbd781b
1 changed files with 12 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
|
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
|
||||||
# Copyright (c) 2024 Marat Reymers
|
# Copyright (c) 2021-2025 Marat Reymers
|
||||||
|
|
||||||
## Golden config for golangci-lint v1.62.0
|
## Golden config for golangci-lint v1.63.4
|
||||||
#
|
#
|
||||||
# This is the best config for golangci-lint based on my experience and opinion.
|
# This is the best config for golangci-lint based on my experience and opinion.
|
||||||
# It is very strict, but not extremely strict.
|
# It is very strict, but not extremely strict.
|
||||||
|
@ -184,6 +184,13 @@ linters-settings:
|
||||||
# Default: true
|
# Default: true
|
||||||
strconcat: false
|
strconcat: false
|
||||||
|
|
||||||
|
reassign:
|
||||||
|
# Patterns for global variable names that are checked for reassignment.
|
||||||
|
# See https://github.com/curioswitch/go-reassign#usage
|
||||||
|
# Default: ["EOF", "Err.*"]
|
||||||
|
patterns:
|
||||||
|
- ".*"
|
||||||
|
|
||||||
rowserrcheck:
|
rowserrcheck:
|
||||||
# database/sql is always checked
|
# database/sql is always checked
|
||||||
# Default: []
|
# Default: []
|
||||||
|
@ -239,6 +246,7 @@ linters:
|
||||||
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
|
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
|
||||||
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
|
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
|
||||||
- exhaustive # checks exhaustiveness of enum switch statements
|
- exhaustive # checks exhaustiveness of enum switch statements
|
||||||
|
- exptostd # detects functions from golang.org/x/exp/ that can be replaced by std functions
|
||||||
- fatcontext # detects nested contexts in loops
|
- fatcontext # detects nested contexts in loops
|
||||||
- forbidigo # forbids identifiers
|
- forbidigo # forbids identifiers
|
||||||
- funlen # tool for detection of long functions
|
- funlen # tool for detection of long functions
|
||||||
|
@ -267,6 +275,7 @@ linters:
|
||||||
- nakedret # finds naked returns in functions greater than a specified function length
|
- nakedret # finds naked returns in functions greater than a specified function length
|
||||||
- nestif # reports deeply nested if statements
|
- nestif # reports deeply nested if statements
|
||||||
- nilerr # finds the code that returns nil even if it checks that the error is not nil
|
- nilerr # finds the code that returns nil even if it checks that the error is not nil
|
||||||
|
- nilnesserr # reports that it checks for err != nil, but it returns a different nil value error (powered by nilness and nilerr)
|
||||||
- nilnil # checks that there is no simultaneous return of nil error and an invalid value
|
- nilnil # checks that there is no simultaneous return of nil error and an invalid value
|
||||||
- noctx # finds sending http request without context.Context
|
- noctx # finds sending http request without context.Context
|
||||||
- nolintlint # reports ill-formed or insufficient nolint directives
|
- nolintlint # reports ill-formed or insufficient nolint directives
|
||||||
|
@ -292,6 +301,7 @@ linters:
|
||||||
- unconvert # removes unnecessary type conversions
|
- unconvert # removes unnecessary type conversions
|
||||||
- unparam # reports unused function parameters
|
- unparam # reports unused function parameters
|
||||||
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library
|
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library
|
||||||
|
- usetesting # reports uses of functions with replacement inside the testing package
|
||||||
- wastedassign # finds wasted assignment statements
|
- wastedassign # finds wasted assignment statements
|
||||||
- whitespace # detects leading and trailing whitespace
|
- whitespace # detects leading and trailing whitespace
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue