mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-25 23:09:36 +03:00
explicitly export variables
This commit is contained in:
parent
21eab13043
commit
87416a6867
13
.github/workflows/clang-format.yml
vendored
13
.github/workflows/clang-format.yml
vendored
@ -18,12 +18,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Formatter
|
- name: Formatter
|
||||||
run: find -name '*.c' -o -name '*.h' | xargs clang-format -i -style="$line1 $line2 $line3 $line4"
|
run: |
|
||||||
env:
|
export line1='{ BasedOnStyle: LLVM, UseTab: Never,'
|
||||||
- line1="{ BasedOnStyle: LLVM, UseTab: Never,"
|
export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,'
|
||||||
- line2="IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,"
|
export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,'
|
||||||
- line3="AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,"
|
export line4='ColumnLimit: 80, AccessModifierOffset: -4 }'
|
||||||
- line4="ColumnLimit: 80, AccessModifierOffset: -4 }"
|
find -name '*.c' -o -name '*.h' | xargs clang-format -i -style="$line1 $line2 $line3 $line4"
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: git diff
|
run: git diff
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user