Browse Source

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>
process-exit-stdio-flushing
Ben Noordhuis 9 years ago
parent
commit
813e73e1f5
  1. 1
      tools/cpplint.py

1
tools/cpplint.py

@ -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…
Cancel
Save