From 6d4a03d3d216103f61fdc1bbaaa7d79928eb664f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 1 Dec 2015 12:31:50 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell --- tools/cpplint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cpplint.py b/tools/cpplint.py index 3019395d62df84..98a3986308c4e3 100644 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -199,6 +199,7 @@ 'whitespace/comments', 'whitespace/end_of_line', 'whitespace/ending_newline', + 'whitespace/if-one-line', 'whitespace/indent', 'whitespace/labels', 'whitespace/line_length',