Skip to content

Commit 75c2aff

Browse files
committed
fix workflow script
1 parent 00e2b7f commit 75c2aff

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

.github/workflows/stylecheck.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ jobs:
1818
- name: Install
1919
run: sudo apt-get install moreutils
2020

21-
- name: Fix spacing
22-
run: |
23-
# Fix mixed tabs and spaces
24-
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' {} \;
25-
26-
# Fix trailing white spaces
27-
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'sed -i '' -e "s/[[:space:]]*$//" "$0"' {} \;
28-
29-
# Ensure files end with a new line
30-
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'tail -c1 < "$0" | read -r _ || echo >> "$0"' {} \;
31-
3221
- name: Report result
3322
run: |
3423
if [ -z "$(git status -s)" ]; then

0 commit comments

Comments
 (0)