commit | 1895ea386ca78573302483f589ebabd8ce1480e7 | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Thu Jul 18 13:28:37 2013 -0700 |
committer | Brian Carlstrom <bdc@google.com> | Thu Jul 18 14:38:27 2013 -0700 |
tree | d8c2d27ac746f29c8248fe17fd6b8e9872556fc4 | |
parent | 3e3d591f781b771de89f3b989830da2b6ac6fac8 [diff] [blame] |
Fix cpplint readability/fn_size issues Change-Id: I1efdb07a948a2af49db1a9d21ccab16dacc03a54
diff --git a/tools/cpplint.py b/tools/cpplint.py index da5a938..4f069b7 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py
@@ -645,6 +645,11 @@ filename: The name of the current file. linenum: The number of the line to check. """ + # BEGIN android-added + if not self.in_a_function: + return + # END android-added + if Match(r'T(EST|est)', self.current_function): base_trigger = self._TEST_TRIGGER else: