Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 598 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 598 Bytes

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: AMReX-Astro/clang-tidy-action@master
        with: 
          github_token: ${{ secrets.GITHUB_TOKEN }}
          build_path: /path/to/executable

There are also the options make_options which defines the Make arguments that shall be used by clang-tidy, and ignore_files which defines a regex which clang-tidy uses to ignore files.