Lines Matching refs:name

14 #     * Neither the name of Google Inc. nor the names of its
259 def IgnoreDir(self, name):
260 return (name.startswith('.') or
261 name in ('buildtools', 'data', 'gmock', 'gtest', 'kraken',
264 def IgnoreFile(self, name):
265 return name.startswith('.')
364 def IsRelevant(self, name):
365 return name.endswith('.cc') or name.endswith('.h')
367 def IgnoreDir(self, name):
368 return (super(CppLintProcessor, self).IgnoreDir(name)
369 or (name == 'third_party'))
379 def IgnoreFile(self, name):
380 return (super(CppLintProcessor, self).IgnoreFile(name)
381 or (name in CppLintProcessor.IGNORE_LINT))
409 def IsRelevant(self, name):
410 return name.endswith('.tq')
438 def IsRelevant(self, name):
439 return name.endswith('.js') or name.endswith('.mjs')
484 output = subprocess.Popen('git ls-files --full-name',
499 def IsRelevant(self, name):
501 if name.endswith(ext):
508 def IgnoreDir(self, name):
509 return (super(SourceProcessor, self).IgnoreDir(name) or
510 name in ('third_party', 'out', 'obj', 'DerivedSources'))
559 def ProcessContents(self, name, contents):
561 base = basename(name)
564 print("%s contains tabs" % name)
567 not any(ignore_dir in name for ignore_dir
570 print("%s is missing a correct copyright header." % name)
583 print("%s has trailing whitespaces in lines %s." % (name, linenumbers))
585 print("%s has trailing whitespaces in line %s." % (name, linenumbers))
588 print("%s does not end with a single new line." % name)
591 if (".js" in name or ".mjs" in name) and ("mjsunit" in name or "debugger" in name):
594 print("%s Flags should use '-' (not '_')" % name)
596 if (not "mjsunit/mjsunit.js" in name and
597 not "mjsunit/mjsunit_numfuzz.js" in name):
601 "assertOptimized() is used" % name)
606 "assertUnoptimized() is used" % name)
611 print("%s has unexpected spaces in a runtime call '%s'" % (name, match.group(1)))
676 def IsRelevant(self, name):
711 # Infer affected status file name. Only care for existing status