cgbsu / cpp-linter-action

A GitHub action to automatically execute a Clang Tidy and Cppcheck linters on C/C++ files changed in a pull request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/clang-tidy-action@master
    env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

A GitHub action to automatically execute a Clang Tidy and Cppcheck linters on C/C++ files changed in a pull request.


Languages

Language:Shell 75.9%Language:Dockerfile 24.1%