mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 01:27:03 -05:00
add golangci to lint
This commit is contained in:
parent
4970af7e00
commit
f624dd3249
4
.github/linters/.golangci.yml
vendored
4
.github/linters/.golangci.yml
vendored
@ -1,8 +1,8 @@
|
||||
run:
|
||||
modules-download-mode: vendor
|
||||
skip-dirs:
|
||||
- generated.*
|
||||
- external
|
||||
skip-files:
|
||||
- generated.*
|
||||
|
||||
linters:
|
||||
enable:
|
||||
|
8
.github/workflows/linter.yml
vendored
8
.github/workflows/linter.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user