From 166298f7cde906b380b63f2909118eb4c24e7253 Mon Sep 17 00:00:00 2001 From: Richard Peters Date: Wed, 4 Dec 2024 12:42:34 +0100 Subject: [PATCH] ci: refactor clang-format linting --- .github/workflows/linting-formatting.yml | 20 -------------------- .mega-linter.yml | 2 ++ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/linting-formatting.yml b/.github/workflows/linting-formatting.yml index 2fe1cdc..6dac6ee 100644 --- a/.github/workflows/linting-formatting.yml +++ b/.github/workflows/linting-formatting.yml @@ -15,26 +15,6 @@ concurrency: cancel-in-progress: true jobs: - formatter: - name: Formatting - runs-on: [ubuntu-latest] - permissions: - contents: read - pull-requests: write - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - with: - persist-credentials: false - - uses: DoozyX/clang-format-lint-action@c71d0bf4e21876ebec3e5647491186f8797fde31 - with: - clangFormatVersion: 14 - inplace: true - extensions: "cpp,hpp" - exclude: "./external" - - uses: reviewdog/action-suggester@db4abb16fbaabe386831e5addb7be1485d0d63d3 - with: - tool_name: clang-format - filter_mode: diff_context linter: name: Linting runs-on: [ubuntu-latest] diff --git a/.mega-linter.yml b/.mega-linter.yml index aa550a4..be20cbf 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -1,6 +1,7 @@ APPLY_FIXES: all ENABLE: - ACTION + - CPP - DOCKERFILE - GHERKIN - JSON @@ -9,6 +10,7 @@ ENABLE: - SPELL - YAML DISABLE_LINTERS: + - CPP_CPPLINT - REPOSITORY_DEVSKIM - REPOSITORY_GITLEAKS - REPOSITORY_KICS