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: