mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-09 13:37:25 +08:00
Merge pull request #639 from TheAlgorithms/GitHub-Action-for-cpplint
GitHub Action to run cpplint on all pull requests
This commit is contained in:
12
.github/workflows/ccpp.yml
vendored
Normal file
12
.github/workflows/ccpp.yml
vendored
Normal 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 .
|
||||
Reference in New Issue
Block a user