summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-05-19 10:42:10 +0300
committerGrail Finder <wohilas@gmail.com>2025-05-19 10:42:10 +0300
commit94df5b830c84d1fb570c85ec072d917ea4497d8c (patch)
tree4ac09beade74f6500641ab067ea9fa82aaa03623 /.golangci.yml
parenta7e7da6f9965624e4667ecedd23f2eb073ac2f56 (diff)
Chore: linter
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml50
1 files changed, 31 insertions, 19 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 66732bf..d377c38 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,32 +1,44 @@
+version: "2"
run:
- timeout: 1m
concurrency: 2
tests: false
-
linters:
- enable-all: false
- disable-all: true
+ default: none
enable:
+ - bodyclose
- errcheck
- - gosimple
+ - fatcontext
- govet
- ineffassign
+ - noctx
+ - perfsprint
+ - prealloc
- staticcheck
- - typecheck
- unused
- - prealloc
- presets:
- - performance
-
-linters-settings:
- funlen:
- lines: 80
- statements: 50
- lll:
- line-length: 80
-
+ settings:
+ funlen:
+ lines: 80
+ statements: 50
+ lll:
+ line-length: 80
+ exclusions:
+ generated: lax
+ presets:
+ - comments
+ - common-false-positives
+ - legacy
+ - std-error-handling
+ paths:
+ - third_party$
+ - builtin$
+ - examples$
issues:
- exclude:
- # Display all issues
max-issues-per-linter: 0
max-same-issues: 0
+formatters:
+ exclusions:
+ generated: lax
+ paths:
+ - third_party$
+ - builtin$
+ - examples$