Home | History | Annotate | Download | only in tools

Lines Matching refs:pattern

25 #   warn_patterns[w]['projects'][p]  number of warnings of pattern w in p
142 def tidy_warn_pattern(description, pattern):
147 'patterns': [r'.*: .+\[' + pattern + r'\]$']
1287 'Java: Logging an exception and throwing it (or a new exception) for the same exceptional situation is an anti-pattern.',
1687 'Java: This pattern will silently corrupt certain byte sequences from the serialized protocol message. Use ByteString or byte[] directly',
1702 'Java: Use of "YYYY" (week year) in a date pattern without "ww" (week in year). You probably meant to use "yyyy" (year) instead.',
2610 def project_name_and_pattern(name, pattern):
2611 return [name, '(^|.*/)' + pattern + '/.*: warning:']
2614 def simple_project_pattern(pattern):
2615 return project_name_and_pattern(pattern, pattern)
2787 # Each warning pattern has a 'projects' dictionary, that
2943 # (1) Current, group by severity, id for each warning pattern
2946 # id for each warning pattern + project name
2949 # id for each warning pattern
3051 pattern = warn_patterns[pattern_idx]
3052 pattern['members'].append(line)
3058 if pname in pattern['projects']:
3059 pattern['projects'][pname] += 1
3061 pattern['projects'][pname] = 1
3065 """Precompiling every pattern speeds up parsing by about 30x."""