1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

add golangci to lint

This commit is contained in:
Kslr 2020-09-09 17:50:36 +08:00
parent 4970af7e00
commit f624dd3249
No known key found for this signature in database
GPG Key ID: 0AF5F66FA1E887CE
2 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,8 @@
run:
modules-download-mode: vendor
skip-dirs:
- generated.*
- external
skip-files:
- generated.*
linters:
enable:

View File

@ -57,3 +57,11 @@ jobs:
echo -e "\033[0;31m$filesNeedToFormat\033[0m"
exit 1
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