loop file by file

This commit is contained in:
Krishna Vedala 2020-05-29 15:12:03 -04:00
parent 17259d8351
commit d27039c2ee

View File

@ -23,7 +23,7 @@ jobs:
export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,'
export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,'
export line4='ColumnLimit: 80, AccessModifierOffset: -4 }'
find . -name '*.c' -o -name '*.h' | xargs clang-format -i --style="$line1 $line2 $line3 $line4"
for fname in $(find . -name '*.c' -o -name '*.h'); do clang-format -i --style="$line1 $line2 $line3 $line4"; done
- name: test
run: git diff