This action runs cpplint with reviewdog on pull requests to improve code review experience.
Required. Must be in form of github_token: ${{ secrets.github_token }}
'.
Optional. Report level for reviewdog [info,warning,error].
It's same as -level
flag of reviewdog.
Default is error
.
Reporter of reviewdog command [github-pr-check,github-pr-review].
Default is github-pr-check
.
Additional reviewdog flags.
Default is ''
.
Optional. List of arguments to send to cpplint.
Default is --extensions=h,hpp,c,cpp,cc,cu,hh,ipp
.
Optional. List of filter arguments to send to cpplint.
Default is --filter=""
.
Optional. List of file list arguments to send to cpplint.
Default is --recursive
.
name: Reviewdog
on: [pull_request]
jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
flags: --linelength=50 # Optional
filter: "-readability/braces\
,-whitespace/braces\
,-whitespace/comments\
,-whitespace/indent\
,-whitespace/newline\
,-whitespace/operators\
,-whitespace/parens\
" # Optional