Rules: comments: Allow empty comments

This commit is contained in:
Adrien Vergé
2016-01-14 19:56:10 +01:00
parent 5cc900f2a8
commit 3989a09d32
2 changed files with 14 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ def check(conf, token, prev, next):
if (conf['require-starting-space'] and
comment.pointer + 1 < len(comment.buffer) and
comment.buffer[comment.pointer + 1] != ' '):
comment.buffer[comment.pointer + 1] != ' ' and
comment.buffer[comment.pointer + 1] != '\n'):
yield LintProblem(comment.line, comment.column + 1,
'missing starting space in comment')