From 0709f76478a53e926ae91193889393f757fc3b91 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 6 Feb 2016 19:04:43 +0200 Subject: Style checker - Prevent whitespace-only lines --- src/CheckBasicStyle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}, -- cgit v1.2.3