mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
fix check-ungrouped-includes.sh
This commit is contained in:
parent
dcec80e6dd
commit
8787cde9c5
@ -3,6 +3,6 @@
|
|||||||
ROOT_PATH=$(git rev-parse --show-toplevel)
|
ROOT_PATH=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
# Find files with includes not grouped together by first component of path
|
# 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;
|
[[ $(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
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user