From 00a2b5a95bcdae4781cf38401586e32063f6ef9c Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Tue, 3 Sep 2024 16:55:05 -0300 Subject: [PATCH] tools: remove readability/fn_size error throw Follow up https://github.com/nodejs/node/pull/54663/ --- tools/cpplint.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/cpplint.py b/tools/cpplint.py index 832e9c54567ee9..79f56e80ce8438 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -1585,11 +1585,6 @@ def Check(self, error, filename, linenum): # 50 => 0, 100 => 1, 200 => 2, 400 => 3, 800 => 4, 1600 => 5, ... if error_level > 5: error_level = 5 - error(filename, linenum, 'readability/fn_size', error_level, - 'Small and focused functions are preferred:' - ' %s has %d non-comment lines' - ' (error triggered by exceeding %d lines).' % ( - self.current_function, self.lines_in_function, trigger)) def End(self): """Stop analyzing function body."""