File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
-
3
2
Language : Cpp
4
3
BasedOnStyle : LLVM
5
4
AlignArrayOfStructures : Left
Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ jobs:
27
27
28
28
- name : Run Clang Format Check
29
29
run : |
30
- # Format all source - "fi" the source is formatted properly this will do nothing
30
+ # Format all source - if the source is formatted properly this will do nothing
31
31
clang-format -i *.c *.h client/*.c
32
32
33
33
# Do we have unwanted changes?
34
34
if ! git diff-index --quiet HEAD; then
35
- # Show the changes
36
- echo "ERROR: Code is not properly formatted."
37
- echo
38
- git --no-pager diff
39
-
40
- echo
41
- echo >&4 "Please run clang-format locally and commit the changes."
42
- exit 1
35
+ # Show the changes
36
+ echo "ERROR: Code is not properly formatted."
37
+ echo
38
+ git --no-pager diff
39
+
40
+ echo
41
+ echo >&2 "Please run clang-format locally and commit the changes."
42
+ exit 1
43
43
fi
44
44
45
45
build :
You can’t perform that action at this time.
0 commit comments