We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6db83 commit b3766b7Copy full SHA for b3766b7
.github/workflows/clang-format-check.yml
.github/workflows/lint.yml
@@ -0,0 +1,21 @@
1
+# Copyright (c) Brandon Pacewic
2
+# SPDX-License-Identifier: MIT
3
+
4
+name: Lint
5
+on:
6
+ pull_request:
7
+ branches:
8
+ - mega
9
+jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout Code
14
+ uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
18
+ - name: Check Formatting
19
+ run: |
20
+ find cpl/inc cpl/src tests/cpl -regex '.*\.\(cpp\|h\|hpp\)' -exec clang-format -i --style=file {} +
21
+ git diff --exit-code || (echo 'Formatting issues found. Please run clang-format.' && exit 1)
tests/clang_format_test.py
0 commit comments