summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-11-28 17:57:50 +0300
committerGrail Finder <wohilas@gmail.com>2024-11-28 17:57:50 +0300
commit34d415c9308f2d089520c2a193cdf8393dcc6b5d (patch)
treebac545ddb1859f18f7d9d75ef5dd23d8c7d29b90 /.golangci.yml
parent14d706f94a45ab43c51f9c03abea7b3588c571c7 (diff)
Feat: add linter
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..66732bf
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,32 @@
+run:
+ timeout: 1m
+ concurrency: 2
+ tests: false
+
+linters:
+ enable-all: false
+ disable-all: true
+ enable:
+ - errcheck
+ - gosimple
+ - govet
+ - ineffassign
+ - staticcheck
+ - typecheck
+ - unused
+ - prealloc
+ presets:
+ - performance
+
+linters-settings:
+ funlen:
+ lines: 80
+ statements: 50
+ lll:
+ line-length: 80
+
+issues:
+ exclude:
+ # Display all issues
+ max-issues-per-linter: 0
+ max-same-issues: 0