mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
fix broken line
This commit is contained in:
parent
18cfb8f5b5
commit
749a9394cd
11
.github/workflows/clang-format.yml
vendored
11
.github/workflows/clang-format.yml
vendored
@ -18,13 +18,12 @@ jobs:
|
||||
with:
|
||||
submodules: true
|
||||
- name: Formatter
|
||||
run: find -name '*.c' -o -name '*.h' | \
|
||||
xargs clang-format -i -style='$line1 $line2 $line3 $line4'
|
||||
run: find -name '*.c' -o -name '*.h' | xargs clang-format -i -style="$line1 $line2 $line3 $line4"
|
||||
env:
|
||||
- line1='{ BasedOnStyle: LLVM, UseTab: Never,'
|
||||
- line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,'
|
||||
- line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,'
|
||||
- line4='ColumnLimit: 80, AccessModifierOffset: -4 }'
|
||||
- line1="{ BasedOnStyle: LLVM, UseTab: Never,"
|
||||
- line2="IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,"
|
||||
- line3="AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,"
|
||||
- line4="ColumnLimit: 80, AccessModifierOffset: -4 }"
|
||||
- name: test
|
||||
run: git diff
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user