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:
|
||||
timeout: 5m
|
||||
tests: true
|
||||
skip-dirs:
|
||||
- vendor
|
||||
- testdata
|
||||
skip-files:
|
||||
- ".*\\.pb\\.go$"
|
||||
- ".*\\.gen\\.go$"
|
||||
|
||||
linters:
|
||||
enable:
|
||||
@@ -41,13 +35,11 @@ linters:
|
||||
- exhaustive
|
||||
- godot
|
||||
- goerr113
|
||||
- gomnd
|
||||
- mnd
|
||||
- goprintffuncname
|
||||
- nlreturn
|
||||
- noctx
|
||||
- nolintlint
|
||||
- rowserrcheck
|
||||
- sqlclosecheck
|
||||
- thelper
|
||||
- tparallel
|
||||
- wastedassign
|
||||
@@ -57,10 +49,6 @@ linters-settings:
|
||||
check-type-assertions: true
|
||||
check-blank: true
|
||||
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable-all: true
|
||||
|
||||
gocyclo:
|
||||
min-complexity: 15
|
||||
|
||||
@@ -127,8 +115,5 @@ issues:
|
||||
exclude-use-default: false
|
||||
|
||||
output:
|
||||
formats:
|
||||
- colored-line-number
|
||||
print-issued-lines: true
|
||||
print-linter-name: true
|
||||
uniq-by-line: false
|
||||
|
||||
Reference in New Issue
Block a user