Remove clang tidy from hooks (#94)

* Removed clang-tidy from hooks

* Improved clang-format output

* Remove lcp from types to format
This commit is contained in:
antonio2368
2021-02-16 11:22:59 +01:00
committed by GitHub
parent cc1c1513ef
commit 435af8b833
2 changed files with 40 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ exec 1>&2
tmpdir=$(mktemp -d repo-XXXXXXXX)
trap "rm -rf $tmpdir" EXIT INT
modified_files=$(git diff --cached --name-only --diff-filter=AM $against | sed -nE "/.*\.(cpp|cc|cxx|c|h|hpp|lcp)$/p")
modified_files=$(git diff --cached --name-only --diff-filter=AM $against | sed -nE "/.*\.(cpp|cc|cxx|c|h|hpp)$/p")
for file in $modified_files; do
echo "Checking $file..."
@@ -30,14 +30,6 @@ for file in $modified_files; do
if [ $code -ne 0 ]; then
break
fi
echo "Running clang-tidy..."
$project_folder/tools/git-clang-tidy $tmpdir/$file
code=$?
if [ $code -ne 0 ]; then
break
fi
done;
return $code