chore: refine .golangci.yml configuration
- Removed unnecessary skip-dirs and skip-files settings to streamline linter checks. - Updated linters by replacing 'gomnd' with 'mnd' for better naming consistency. - Removed the govet section to simplify configuration. - Adjusted output formats for clearer reporting of linter results.
This commit is contained in:
+1
-16
@@ -1,12 +1,6 @@
|
|||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
tests: true
|
tests: true
|
||||||
skip-dirs:
|
|
||||||
- vendor
|
|
||||||
- testdata
|
|
||||||
skip-files:
|
|
||||||
- ".*\\.pb\\.go$"
|
|
||||||
- ".*\\.gen\\.go$"
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
@@ -41,13 +35,11 @@ linters:
|
|||||||
- exhaustive
|
- exhaustive
|
||||||
- godot
|
- godot
|
||||||
- goerr113
|
- goerr113
|
||||||
- gomnd
|
- mnd
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- nlreturn
|
- nlreturn
|
||||||
- noctx
|
- noctx
|
||||||
- nolintlint
|
- nolintlint
|
||||||
- rowserrcheck
|
|
||||||
- sqlclosecheck
|
|
||||||
- thelper
|
- thelper
|
||||||
- tparallel
|
- tparallel
|
||||||
- wastedassign
|
- wastedassign
|
||||||
@@ -57,10 +49,6 @@ linters-settings:
|
|||||||
check-type-assertions: true
|
check-type-assertions: true
|
||||||
check-blank: true
|
check-blank: true
|
||||||
|
|
||||||
govet:
|
|
||||||
check-shadowing: true
|
|
||||||
enable-all: true
|
|
||||||
|
|
||||||
gocyclo:
|
gocyclo:
|
||||||
min-complexity: 15
|
min-complexity: 15
|
||||||
|
|
||||||
@@ -127,8 +115,5 @@ issues:
|
|||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
|
|
||||||
output:
|
output:
|
||||||
formats:
|
|
||||||
- colored-line-number
|
|
||||||
print-issued-lines: true
|
print-issued-lines: true
|
||||||
print-linter-name: true
|
print-linter-name: true
|
||||||
uniq-by-line: false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user