Skip to content

Commit

Permalink
Merge pull request #14 from Fantaskink/linter
Browse files Browse the repository at this point in the history
Add clang-format and primitive type replacement action.
  • Loading branch information
Fantaskink authored Sep 29, 2024
2 parents dff6e92 + d5390f3 commit 3fb9499
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install clang-format
run: sudo apt-get install clang-format

- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: 'src'
fallback-style: 'GNU'
- name: Run clang-format
run: |
find src -name '*.c' -o -name '*.h' | xargs clang-format -i --style=file
- name: Replace primitive types with fixed-width types
run: |
Expand Down

0 comments on commit 3fb9499

Please sign in to comment.