diff options
author | Mattes D <github@xoft.cz> | 2020-04-12 09:24:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 09:24:30 +0200 |
commit | ef2d5027d33ab3ec64c4e93d62749032d187d5c2 (patch) | |
tree | acb7d10c6e71cbf4ec61568dd3b5a7780d54b65c /src/CheckBasicStyle.lua | |
parent | Fix rotation metas on blocks (diff) | |
download | cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar.gz cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar.bz2 cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar.lz cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar.xz cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.tar.zst cuberite-ef2d5027d33ab3ec64c4e93d62749032d187d5c2.zip |
Diffstat (limited to '')
-rwxr-xr-x | src/CheckBasicStyle.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 4376d460a..df25c64ca 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -202,6 +202,9 @@ local g_ViolationPatterns = -- Check if "else" is on the same line as a brace. {"}%s*else", "else has to be on a separate line"}, {"else%s*{", "else has to be on a separate line"}, + + -- Don't allow characters other than ASCII 0 - 127: + {"[" .. string.char(128) .. "-" .. string.char(255) .. "]", "Character in the extended ASCII range (128 - 255) not allowed"}, } |