Skip to content

Commit 4451f43

Browse files
bnoordhuisMichael Scovetta
authored andcommitted
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: nodejs#4099 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 18d2a12 commit 4451f43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/cpplint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
'whitespace/comments',
200200
'whitespace/end_of_line',
201201
'whitespace/ending_newline',
202+
'whitespace/if-one-line',
202203
'whitespace/indent',
203204
'whitespace/labels',
204205
'whitespace/line_length',

0 commit comments

Comments
 (0)