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>
This commit is contained in:
parent
b47d82316c
commit
813e73e1f5
1
tools/cpplint.py
vendored
1
tools/cpplint.py
vendored
@ -199,6 +199,7 @@ _ERROR_CATEGORIES = [
|
|||||||
'whitespace/comments',
|
'whitespace/comments',
|
||||||
'whitespace/end_of_line',
|
'whitespace/end_of_line',
|
||||||
'whitespace/ending_newline',
|
'whitespace/ending_newline',
|
||||||
|
'whitespace/if-one-line',
|
||||||
'whitespace/indent',
|
'whitespace/indent',
|
||||||
'whitespace/labels',
|
'whitespace/labels',
|
||||||
'whitespace/line_length',
|
'whitespace/line_length',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user