File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,14 @@ def check_file_for_issue(self, filepath):
43
43
for i , line in enumerate (iter (f .readline , b"" )):
44
44
self .check_file_line (filepath , line , i + 1 )
45
45
46
+ def record_issue (self , filepath , line_number ):
47
+ if filepath not in self .files_with_issues .keys ():
48
+ self .files_with_issues [filepath ] = []
49
+ self .files_with_issues [filepath ].append (line_number )
50
+
46
51
def check_file_line (self , filepath , line , line_number ):
47
52
if self .issue_with_line (line ):
48
- if filepath not in self .files_with_issues .keys ():
49
- self .files_with_issues [filepath ] = []
50
- self .files_with_issues [filepath ].append (line_number )
53
+ self .record_issue (filepath , line_number )
51
54
52
55
def output_file_issues (self , logger ):
53
56
if self .files_with_issues .values ():
You can’t perform that action at this time.
0 commit comments