File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737
3838function preparedGrep
3939{
40- git grep -nIE " $1 " -- ' *.h' ' *.cpp' | grep -v " ${EXCLUDE_FILES_JOINED} "
40+ git grep -nIE " $1 " -- ' *.h' ' *.cpp' ' :!test/ ' | grep -v " ${EXCLUDE_FILES_JOINED} "
4141 return $?
4242}
4343
@@ -60,7 +60,7 @@ FORMATERROR=$(
6060 preparedGrep " [a-zA-Z0-9_][[:space:]]*[*][a-zA-Z_]" | grep -E -v -e " return [*]" -e " :[0-9]+:[[:space:]]*\*[[:space:]]" -e " //" | addPrefix " Pointer star should be left-aligned"
6161 preparedGrep " move\(.+\)" | grep -v " std::move" | grep -E " [^a-z]move" | addPrefix " Use std::move"
6262 preparedGrep " forward\(.+\)" | grep -v " std::forward" | grep -E " [^a-z]forward" | addPrefix " Use std::forward"
63- ) | grep -E -v -e " ^\[[^]]*\] [a-zA-Z./]*:[0-9]*:[[:space:]]*/[/*]" -e " ^\[[^]]*\] test/ " || true
63+ ) | grep -E -v -e " ^\[[^]]*\] [a-zA-Z./]*:[0-9]*:[[:space:]]*/[/*]" || true
6464)
6565
6666# Special error handling for `using namespace std;` exclusion, since said statement can be present in the test directory
You can’t perform that action at this time.
0 commit comments