mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 20:43:54 +02:00
Remove deprecated linters
This commit is contained in:
@@ -6,7 +6,6 @@ run:
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- deadcode
|
||||
# - errcheck
|
||||
- gocritic
|
||||
# - goconst
|
||||
@@ -15,11 +14,9 @@ linters:
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- stylecheck
|
||||
- typecheck
|
||||
- unused
|
||||
- varcheck
|
||||
|
||||
linters-settings:
|
||||
govet:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! git diff --staged --name-only | grep -qe ".*\.go$"; then
|
||||
if ! git diff --staged --name-only | grep -qE ".*\.go$|\.golangci\.yml$"; then
|
||||
echo "Nothing to lint"
|
||||
exit 0;
|
||||
fi
|
||||
|
Reference in New Issue
Block a user