fix check-ungrouped-includes.sh

This commit is contained in:
Yatsishin Ilya 2020-04-14 10:14:22 +03:00
parent dcec80e6dd
commit 8787cde9c5

View File

@ -3,6 +3,6 @@
ROOT_PATH=$(git rev-parse --show-toplevel)
# Find files with includes not grouped together by first component of path
find $ROOT_PATH/dbms -name '*.h' -or -name '*.cpp' | while read file; do
find $ROOT_PATH/src -name '*.h' -or -name '*.cpp' | while read file; do
[[ $(grep -oP '^#include <\w+' $file | uniq -c | wc -l) > $(grep -oP '^#include <\w+' $file | sort | uniq -c | wc -l) ]] && echo $file && grep -oP '^#include <\w+' $file | uniq -c;
done