diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-07 07:33:36 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-07 07:33:36 +0100 |
commit | 837b3a6cdf2936e9d715dafadb9883a71ea54916 (patch) | |
tree | 5417cc6d93fb30cdb415924b10413656498e981b /src/CheckBasicStyle.lua | |
parent | Merge pull request #2974 from LogicParrot/perl (diff) | |
parent | Style checker - Prevent whitespace-only lines (diff) | |
download | cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar.gz cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar.bz2 cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar.lz cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar.xz cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.tar.zst cuberite-837b3a6cdf2936e9d715dafadb9883a71ea54916.zip |
Diffstat (limited to 'src/CheckBasicStyle.lua')
-rwxr-xr-x | src/CheckBasicStyle.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 81968688c..bd9430e59 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -119,7 +119,7 @@ local g_ViolationPatterns = {"[^%s]\t+[^%s]", "Aligning with a tab"}, -- Check against trailing whitespace: - {"[^%s]%s+\n", "Trailing whitespace"}, + {"%s+\n", "Trailing whitespace or whitespace-only line"}, -- Check that all "//"-style comments have at least two spaces in front (unless alone on line): {"[^%s] //", "Needs at least two spaces in front of a \"//\"-style comment"}, |