Skip to content

Commit

Permalink
tools: remove readability/fn_size error throw
Browse files Browse the repository at this point in the history
Follow up #54663
  • Loading branch information
RafaelGSS committed Sep 3, 2024
1 parent 9e5d2b7 commit 00a2b5a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 00a2b5a

Please sign in to comment.