0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00
LimeReport/tools/check_code_style.sh

12 lines
286 B
Bash
Raw Normal View History

#!/bin/bash
FORMATTER="clang-format-14"
find . -type f \
-regextype posix-extended -regex '^.*\.(cpp|c\+\+|cxx|cc|h|hh|hpp|h\+\+|hxx)$' \
-not -path '*3rdparty*' \
-exec ${FORMATTER} -i -style=file {} \;
git status > /dev/null
git diff-index --exit-code --name-only HEAD