tools: list missing whitespace/if-one-line cpplint

Writing `// NOLINT(whitespace/if-one-line)` was not possible because the
directive was not listed in the list of known lint rules.  You can now.

PR-URL: https://github.com/nodejs/node/pull/4099
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
pull/4099/head
Ben Noordhuis 2015-12-01 12:31:50 +01:00
parent b47d82316c
commit 813e73e1f5
1 changed files with 1 additions and 0 deletions

1
tools/cpplint.py vendored
View File

@ -199,6 +199,7 @@ _ERROR_CATEGORIES = [
'whitespace/comments',
'whitespace/end_of_line',
'whitespace/ending_newline',
'whitespace/if-one-line',
'whitespace/indent',
'whitespace/labels',
'whitespace/line_length',