Skip to content
alert-circle

GitHub Action

C/C++ code linter (clang-tidy, clang-format, and cppcheck)

0.01 Pre-release

C/C++ code linter (clang-tidy, clang-format, and cppcheck)

alert-circle

C/C++ code linter (clang-tidy, clang-format, and cppcheck)

Automatically checks pull requests changes with clang-tidy, clang-format, and cppcheck and posts the comment with result

Installation

Copy and paste the following snippet into your .yml file.

              

- name: C/C++ code linter (clang-tidy, clang-format, and cppcheck)

uses: ArtificialAmateur/[email protected]

Learn more about this action in ArtificialAmateur/cpp-linter-action

Choose a version

Github action for linting the C code. Uses clang-tidy, clang-format, and cppcheck.

Example of usage:

name: c-linter

on: [pull_request]
jobs:
  c-linter:
    name: c-linter
    runs-on: ubuntu-latest
    steps:
      - name: c-linter
        uses: ArtificialAmateur/cpp-linter-action@master
    env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}