mirror of https://github.com/v2ray/v2ray-core
add golangci to lint
parent
4970af7e00
commit
f624dd3249
|
@ -1,8 +1,8 @@
|
||||||
run:
|
run:
|
||||||
modules-download-mode: vendor
|
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- generated.*
|
|
||||||
- external
|
- external
|
||||||
|
skip-files:
|
||||||
|
- generated.*
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
|
|
|
@ -57,3 +57,11 @@ jobs:
|
||||||
echo -e "\033[0;31m$filesNeedToFormat\033[0m"
|
echo -e "\033[0;31m$filesNeedToFormat\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: golangci-lint
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.31
|
||||||
|
only-new-issues: true
|
||||||
|
args: --config=.github/linters/.golangci.yml
|
Loading…
Reference in New Issue