From 67b188f1343f3f9df69eb1c461350429b1f33818 Mon Sep 17 00:00:00 2001 From: Fernando Cladera Date: Mon, 19 Feb 2024 16:12:27 -0500 Subject: [PATCH] Add cpplint linter --- .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..1addc374 --- /dev/null +++ b/.github/workflows/cpplint.yml @@ -0,0 +1,21 @@ +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=120 # Optional + # filter: "-readability/braces\ + # ,-whitespace/braces\ + # ,-whitespace/comments\ + # ,-whitespace/indent\ + # ,-whitespace/newline\ + # ,-whitespace/operators\ + # ,-whitespace/parens\ + # " # Optional