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:
0x524a
2025-12-02 01:01:36 -05:00
parent 00e2e0d46f
commit 3498b7d3a8
+1 -16
View File
@@ -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