mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
update lint
This commit is contained in:
@@ -1,14 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (( $# < 1 )); then
|
|
||||||
>&2 echo "Illegal number of parameters"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# save unsaved work
|
# save unsaved work
|
||||||
git stash --include-untracked
|
git stash --include-untracked
|
||||||
|
|
||||||
clang-format -i "$@"
|
find . -type f -regex '.*/.*\.\(c\|cpp\|h\|hpp\)$' -not -path "./external/*" -not -path "./build/*" -exec clang-format -i {} \;
|
||||||
|
|
||||||
git add -A && git commit -m "Lint"
|
git add -A && git commit -m "Lint"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user