Lines Matching refs:lineno
63 def __init__(self, docname, lineno, issue, line): argument
66 self.lineno = lineno # line number in the original source;
122 def check_issue(self, line, lineno, issue): argument
123 if not self.is_ignored(line, lineno, issue):
124 self.report_issue(line, lineno, issue)
126 def is_ignored(self, line, lineno, issue): argument
141 if (rule.lineno is not None) and \
142 abs(rule.lineno - lineno) > 5: continue
148 def report_issue(self, text, lineno, issue): argument
151 self.write_log_entry(lineno, issue, text)
154 (self.docname, lineno, issue, text))
158 lineno,
163 def write_log_entry(self, lineno, issue, text): argument
167 writer.writerow([self.docname, lineno, issue, text.strip()])
173 lineno,
197 docname, lineno, issue, text = row
198 if lineno:
199 lineno = int(lineno)
201 lineno = None
206 rule = Rule(docname, lineno, issue, text)
214 lineno = None
215 while lineno is None and node:
217 lineno = node.line
218 return lineno
255 self.lastlineno = lineno = max(get_lineno(node) or 0, self.lastlineno)
261 self.builder.check_issue(line, lineno, issue)