Skip to content

Commit ce42537

Browse files
committed
CI: Try adding a clazy header filter
Attempt to exclude includes from Clazy analysis
1 parent 1406ba0 commit ce42537

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sub_lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,15 @@ jobs:
729729
- name: Clazy
730730
if: inputs.checkClazy && inputs.changedCppFiles != '' && always()
731731
continue-on-error: ${{ inputs.clazyFailSilent }}
732+
env:
733+
CLAZY_HEADER_FILTER: "^$"
732734
run: |
733735
clazyErrors=0
734736
clazyWarnings=0
735737
clazyNotes=0
736738
sudo apt-get install -y --no-install-recommends clazy
737739
#TODO: check where this "clazy.yaml" goes ; shall this be put in the fixes ?
738-
# Run clazy on all changed cpp files
740+
# Run clazy on all changed cpp files, ignoring any included headers
739741
for file in ${{ inputs.changedCppFiles }}
740742
do
741743
clazy-standalone --export-fixes=clazy.yaml -checks=${{ inputs.clazyChecks }} -p build/compile_commands.json $file &>> ${{ env.logdir }}clazy.log || true

0 commit comments

Comments
 (0)