From 9de71fe63c8f0b81babf524fa2d47c9cd205edec Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Mon, 7 Oct 2024 21:20:16 +0200 Subject: [PATCH] cpplint: use cpplint version 1.6.1 for now when upgrading to cpplint 2.0.0, C-style casts are flagged. since many of them are in libraries, we will use version 1.6.1 until we figure out whether we shall ignore C-style casts or if we will replace them. --- .github/workflows/cpplint.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 8dfba9f2..979b5f0a 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -19,7 +19,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install cpplint + pip install cpplint==1.6.1 - name: Linting run: | - cpplint --repository=. --recursive --filter=-build/c++11,-runtime/references,-readability/braces,-whitespace,-legal,-build/include ./src ./include ./lib/Hoymiles ./lib/MqttSubscribeParser ./lib/TimeoutHelper ./lib/ResetReason + cpplint --repository=. --recursive \ + --filter=-build/c++11,-runtime/references,-readability/braces,-whitespace,-legal,-build/include \ + ./src ./include ./lib/Hoymiles ./lib/MqttSubscribeParser ./lib/TimeoutHelper ./lib/ResetReason