mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-10-11 23:20:13 +00:00
chore: migrate golangci-lint config to v2
golangci-lint v2 rejects the old config format, so the pre-commit hook failed on every commit. The config now uses version 2 with the same linters and exclusions.
This commit is contained in:
+25
-16
@@ -1,19 +1,28 @@
|
|||||||
run:
|
version: "2"
|
||||||
timeout: 5m
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- gosec
|
- gosec
|
||||||
- staticcheck
|
settings:
|
||||||
|
gosec:
|
||||||
linters-settings:
|
severity: medium
|
||||||
gosec:
|
confidence: low
|
||||||
excludes: []
|
exclusions:
|
||||||
confidence: low
|
generated: lax
|
||||||
severity: medium
|
presets:
|
||||||
|
- comments
|
||||||
issues:
|
- common-false-positives
|
||||||
exclude-dirs:
|
- legacy
|
||||||
- .repos
|
- std-error-handling
|
||||||
- web
|
paths:
|
||||||
exclude-dirs-use-default: true
|
- .repos
|
||||||
|
- web
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
formatters:
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|||||||
Reference in New Issue
Block a user