Skip to content

Commit

Permalink
add reviewdog for staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Feb 28, 2021
1 parent ec2f7bf commit 9ea4559
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: reviewdog
on: [pull_request]
jobs:
staticcheck:
name: runner / staticcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-staticcheck@v1
with:
github_token: ${{ secrets.github_token }}
staticcheck_flags: 'all,-ST1000'
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
reporter: github-pr-review
# Report all results.
filter_mode: nofilter
# Exit with 1 when it find at least one finding.
fail_on_error: true

0 comments on commit 9ea4559

Please sign in to comment.