add reviewdog vint github actions (#608)

add reviewdog and vint support
This commit is contained in:
Prabir Shrestha
2019-12-23 18:19:22 -08:00
committed by GitHub
parent abc1d83dd5
commit b77471f6a7
2 changed files with 23 additions and 0 deletions

13
.github/workflows/reviewdog.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: reviewdog
on: [pull_request, push]
jobs:
vimlint:
name: runner / vint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: vint
uses: reviewdog/action-vint@v1
with:
github_token: ${{ secrets.github_token }}
level: warning

10
.vintrc.yaml Normal file
View File

@@ -0,0 +1,10 @@
cmdargs:
severity: style_problem
policies:
ProhibitUnusedVariable:
enabled: true
ProhibitImplicitScopeVariable:
enabled: true
ProhibitNoAbortFunction:
enabled: true