File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -117,15 +117,7 @@ def result_for_xml(result_item: ResultItem):
117117 items .set ('msg' , str_summary )
118118 _root_xml_item .append (items )
119119 else :
120- for file_name in (set (result_item ._files_without_lic ) | set (result_item ._files_without_cop )):
121- items = ET .Element ('error' )
122- items .set ('file' , file_name )
123- items .set ('id' , 'rule_key_osc_checker_02' )
124- items .set ('line' , '0' )
125- items .set ('msg' , MSG_FOLLOW_LIC_TXT )
126- _root_xml_item .append (items )
127-
128- for file_name in result_item ._files_without_cop :
120+ for file_name in (set (result_item ._files_without_lic ) | set (result_item ._files_without_both )):
129121 items = ET .Element ('error' )
130122 items .set ('file' , file_name )
131123 items .set ('id' , 'rule_key_osc_checker_02' )
You can’t perform that action at this time.
0 commit comments