mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check for style of namespace.
This commit is contained in:
parent
a87998494a
commit
033559206c
@ -47,6 +47,7 @@ FORMATERROR=$(
|
||||
preparedGrep "\<(if|for|while|switch)\(" # no space after "if", "for", "while" or "switch"
|
||||
preparedGrep "\<for\>\s*\([^=]*\>\s:\s.*\)" # no space before range based for-loop
|
||||
preparedGrep "\<if\>\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
|
||||
|
Loading…
Reference in New Issue
Block a user