Merge pull request #639 from TheAlgorithms/GitHub-Action-for-cpplint

GitHub Action to run cpplint on all pull requests
This commit is contained in:
Christian Clauss
2019-11-27 14:32:43 +01:00
committed by GitHub

12
.github/workflows/ccpp.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
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
# - run: cpplint --filter= # print out all cpplint rules
# TODO: Remove each filter one at a time and fix those failures
- run: cpplint --filter=-build,-legal,-readability,-runtime,-whitespace --recursive .