use environment variables to break a long line

This commit is contained in:
Krishna Vedala 2020-05-29 14:48:14 -04:00
parent 122ce59925
commit bd40bd2db1

View File

@ -19,10 +19,12 @@ jobs:
submodules: true
- name: Formatter
run: find -name '*.c' -o -name '*.h' | \
xargs clang-format -i -style="{ BasedOnStyle: LLVM, UseTab: Never, \
IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, \
AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, \
ColumnLimit: 80, AccessModifierOffset: -4 }"
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 }'
- name: test
run: git diff