diff options
author | Mattes D <github@xoft.cz> | 2015-05-09 11:40:06 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-09 12:58:56 +0200 |
commit | 756d31031843c3363c991477fa7788b11894d619 (patch) | |
tree | 911736baccf3617a13f6b7e04ebbfe3fe035fb50 /src | |
parent | CheckBasicStyle: checks spaces around * and &. (diff) | |
download | cuberite-756d31031843c3363c991477fa7788b11894d619.tar cuberite-756d31031843c3363c991477fa7788b11894d619.tar.gz cuberite-756d31031843c3363c991477fa7788b11894d619.tar.bz2 cuberite-756d31031843c3363c991477fa7788b11894d619.tar.lz cuberite-756d31031843c3363c991477fa7788b11894d619.tar.xz cuberite-756d31031843c3363c991477fa7788b11894d619.tar.zst cuberite-756d31031843c3363c991477fa7788b11894d619.zip |
Diffstat (limited to '')
-rwxr-xr-x | src/CheckBasicStyle.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 133446350..9ff47634d 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -178,6 +178,10 @@ local g_ViolationPatterns = {"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%&[a-zA-Z0-9]+", "Add space around /"}, {"^[a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"}, {"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"}, + + -- We don't like "Type const *" and "Type const &". Use "const Type *" and "const Type &" instead: + {"const %&", "Use 'const Type &' instead of 'Type const &'"}, + {"const %*", "Use 'const Type *' instead of 'Type const *'"}, } |