GitHub Action: Run cpplint with reviewdog
This action runs cpplint with reviewdog on pull requests to improve code review experience.
Inputs
github_token
Required. Must be in form of github_token: ${{ secrets.github_token }}'.
level
Optional. Report level for reviewdog [info,warning,error].
It's same as -level flag of reviewdog.
Default is error.
reporter
Reporter of reviewdog command [github-pr-check,github-pr-review].
Default is github-pr-check.
flags
Optional. List of arguments to send to cpplint.
Default is --extensions=h,hpp,c,cpp,cc,cu,hh,ipp.
filter
Optional. List of filter arguments to send to cpplint.
Default is -build/include_order.
targets
Optional. List of file list arguments to send to cpplint.
Default is --recursive ..
Example Usage
.github/workflows/reviewdog.yml
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
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


