mirror of
https://github.com/TheAlgorithms/C
synced 2025-01-28 20:35:20 +03:00
loop file by file
This commit is contained in:
parent
17259d8351
commit
d27039c2ee
2
.github/workflows/clang-format.yml
vendored
2
.github/workflows/clang-format.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user