From 77c53fbbfd1c2f94e1ae486a08310dc45b12affb Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 15 Sep 2022 19:02:12 +0200 Subject: [PATCH] Added cpplint check --- .github/workflows/cpplint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cpplint.yml diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml new file mode 100644 index 00000000..5a44695e --- /dev/null +++ b/.github/workflows/cpplint.yml @@ -0,0 +1,21 @@ +name: cpplint + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install cpplint + - name: Linting + run: | + cpplint --repository=. --recursive --filter=-runtime/references,-readability/braces,-whitespace,-legal,-build/include ./src ./include ./lib/Hoymiles