Lines Matching refs:line
54 previous_line = None # the previous read line
61 line = original_line.strip()
63 if line.startswith('# '):
68 report('structure/unexpected_section', f'{file}:{lineno+1}', f'unexpected top-level title "{line}"')
72 if line == '# Overview':
76 if len(line) > 160 and '|' not in line:
77 report('whitespace/line_length', f'{file}:{lineno+1} ({current_section})', f'line is too long ({len(line)} vs. 160 chars)')
80 if line.startswith('<!-- NOLINT'):
81 current_section = line.strip('<!-- NOLINT')
86 if line.startswith('## '):
98 current_section = line.strip('## ')
119 if line == '```cpp' and section_idx == -1:
122 if in_initial_code_example and line.startswith('//') and line not in ['// since C++20', '// until C++20']:
124 if any(map(str.isdigit, line)):
125 number = int(re.findall(r'\d+', line)[0])
130 if any(map(str.isdigit, line)) and '(' not in line:
131 report('style/numbering', f'{file}:{lineno+1}', f'number should be in parentheses: {line}')
133 if line == '```' and in_initial_code_example:
137 if line == '' and previous_line == '':
141 untitled_admonition = re.match(r'^(\?\?\?|!!!) ([^ ]+)$', line)
145 previous_line = line