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