2019-11-27 01:59:21 +08:00
|
|
|
name: cpplint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
- run: pip install cpplint
|
2019-11-27 07:29:00 +08:00
|
|
|
- run: |
|
2019-11-27 07:34:26 +08:00
|
|
|
cpplint --filter=-build/include_order,-build/namespaces,-legal/copyright,
|
|
|
|
-readability/casting,-readability/todo,-runtime/arrays,-runtime/explicit,
|
2019-11-27 07:29:00 +08:00
|
|
|
-runtime/int,-runtime/references,-runtime/threadsafe_fn,-whitespace --recursive .
|
|
|
|
# whitespace/blank_line,-whitespace/braces,-whitespace/comma,-whitespace/comments
|
|
|
|
# whitespace/empty_loop_body,-whitespace/end_of_line,-whitespace/ending_newline
|
|
|
|
# whitespace/forcolon,-whitespace/indent,-whitespace/line_length,-whitespace/newline
|
|
|
|
# whitespace/operators,-whitespace/parens,-whitespace/semicolon,-whitespace/tab --recursive .
|