From d09ae582ab602a121d0c059ad66f5a6ac8bc68ad Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 18 Feb 2024 23:22:42 +0000 Subject: [PATCH] Set AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS directly with pre-commit config --- .github/workflows/reusable-pre-commit.yml | 2 -- .pre-commit-config.yaml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/reusable-pre-commit.yml b/.github/workflows/reusable-pre-commit.yml index c5c1a65..5ee5259 100644 --- a/.github/workflows/reusable-pre-commit.yml +++ b/.github/workflows/reusable-pre-commit.yml @@ -14,8 +14,6 @@ on: jobs: pre-commit: runs-on: ubuntu-latest - env: - AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS: true steps: - uses: actions/checkout@v4 - uses: ros-tooling/setup-ros@0.7.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index daafc2b..8dc0c0a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: - id: ament_cppcheck name: ament_cppcheck description: Static code analysis of C/C++ files. - entry: ament_cppcheck + entry: env AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS=1 ament_cppcheck language: system files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$