Skip to content
Snippets Groups Projects
Commit a64e660f authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

Add a rule to detect misplaced labels during check-spaces

parent b2dcff57
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,10 @@ for $fn (@ARGV) {
if (/\t/) {
print " TAB:$fn:$.\n";
}
## Warn about markers that don't have a space in front of them
if (/^[a-zA-Z_][a-zA-Z_0-9]*:/) {
print "nosplabel:$fn:$.\n";
}
## Warn about trailing whitespace.
if (/ +$/) {
print "Space\@EOL:$fn:$.\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment