Add codestyle rule to prevent include ".."

This commit is contained in:
Mathias Baumann
2020-02-11 13:03:46 +01:00
parent e635121bad
commit 3a4cb016ff
+1
View File
@@ -17,6 +17,7 @@ fi
FORMATERROR=$(
(
git grep -nIE "#include \"" -- '*.h' '*.cpp' | egrep -v -e "license.h" -e "BuildInfo.h" # Use include with <> characters
git grep -nIE "\<(if|for|while|switch)\(" -- '*.h' '*.cpp' # no space after "if", "for", "while" or "switch"
git grep -nIE "\<for\>\s*\([^=]*\>\s:\s.*\)" -- '*.h' '*.cpp' # no space before range based for-loop
git grep -nIE "\<if\>\s*\(.*\)\s*\{\s*$" -- '*.h' '*.cpp' # "{\n" on same line as "if" / "for"