mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-15 23:21:28 +00:00
Report the original line contents in capp_lint.
capp_lint does some preprocessing of lines to simplify the lint tests, but the user will expect the regular, non processed lines in the output.
This commit is contained in:
@@ -309,6 +309,7 @@ class LintChecker(object):
|
||||
continue
|
||||
|
||||
line = self.line
|
||||
originalLine = line
|
||||
lineFilter = check.get('filter')
|
||||
|
||||
if lineFilter:
|
||||
@@ -365,7 +366,7 @@ class LintChecker(object):
|
||||
break
|
||||
|
||||
if positions:
|
||||
self.error(check['error'], line=line, positions=positions, type=check['type'])
|
||||
self.error(check['error'], line=originalLine, positions=positions, type=check['type'])
|
||||
|
||||
def next_statement(self, expect_line=False, check_line=True):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user