File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ def _create_checkstyle_report(messages: List[Message]) -> str:
20
20
root = minidom .Document ()
21
21
checkstyle = root .createElement ('checkstyle' )
22
22
root .appendChild (checkstyle )
23
- messages_by_file = {abspath : list (messages )
24
- for abspath , messages in
23
+ messages_by_file = {path : list (messages )
24
+ for path , messages in
25
25
(groupby (
26
- sorted (messages , key = lambda x : x .abspath ),
27
- lambda x : x .abspath )
26
+ sorted (messages , key = lambda x : x .path ),
27
+ lambda x : x .path )
28
28
)}
29
- for abspath in messages_by_file :
29
+ for path in messages_by_file :
30
30
file = root .createElement ("file" )
31
- file .setAttribute ("name" , abspath )
32
- for msg in messages_by_file [abspath ]:
31
+ file .setAttribute ("name" , path )
32
+ for msg in messages_by_file [path ]:
33
33
error = root .createElement ("error" )
34
34
error .setAttribute ("line" , str (msg .line ))
35
35
error .setAttribute ("column" , str (msg .column ))
You can’t perform that action at this time.
0 commit comments