1
0

Style checker - Prevent whitespace-only lines

This commit is contained in:
LogicParrot 2016-02-06 19:04:43 +02:00
parent 6fdd7194c8
commit 0709f76478

View File

@ -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"},