Lines Matching refs:lines
158 def check_syntax(fn, lines):
160 code = ''.join(lines)
172 def check_suspicious_constructs(fn, lines):
175 for lno, line in enumerate(lines, start=1):
195 def check_whitespace(fn, lines):
197 for lno, line in enumerate(lines):
207 def check_line_length(fn, lines):
209 for lno, line in enumerate(lines):
221 def check_leaked_markup(fn, lines):
225 for lno, line in enumerate(lines):
230 def hide_literal_blocks(lines):
231 """Tool to remove literal blocks from given lines.
233 It yields empty lines in place of blocks, so line numbers are
237 for line in lines:
262 def hide_comments(lines):
263 """Tool to remove comments from given lines.
265 It yields empty lines in place of comments, so line numbers are
269 for line in lines:
284 def check_missing_surrogate_space_on_plural(fn, lines):
292 for lno, line in enumerate(hide_comments(hide_literal_blocks(lines))):
378 lines = list(f)
389 for lno, msg in checker(fn, lines):