mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -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:
|
run:
|
||||||
modules-download-mode: vendor
|
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- generated.*
|
|
||||||
- external
|
- external
|
||||||
|
skip-files:
|
||||||
|
- generated.*
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
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"
|
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
Block a user