diff --git a/scripts/check_style.sh b/scripts/check_style.sh index f3e00d8ed..78b0aa23c 100755 --- a/scripts/check_style.sh +++ b/scripts/check_style.sh @@ -47,6 +47,7 @@ FORMATERROR=$( preparedGrep "\<(if|for|while|switch)\(" # no space after "if", "for", "while" or "switch" preparedGrep "\\s*\([^=]*\>\s:\s.*\)" # no space before range based for-loop preparedGrep "\\s*\(.*\)\s*\{\s*$" # "{\n" on same line as "if" + preparedGrep "namespace .*\{" preparedGrep "[,\(<]\s*const " # const on left side of type preparedGrep "^\s*(static)?\s*const " # const on left side of type (beginning of line) preparedGrep "^ [^*]|[^*] | [^*]" # uses spaces for indentation or mixes spaces and tabs