RULEAPI-820 Don't indiscriminately crop rule names on "_" in coverage computation
This commit is contained in:
parent
dd3cecfbc8
commit
a6f4f03031
@ -47,14 +47,14 @@ CANONICAL_NAMES = {
|
||||
'WEB': 'HTML'
|
||||
}
|
||||
|
||||
|
||||
RULES_FILENAME = 'covered_rules.json'
|
||||
|
||||
|
||||
def get_rule_id(filename):
|
||||
rule_id = filename[:-5]
|
||||
if '_' in rule_id:
|
||||
return rule_id[:rule_id.find('_')]
|
||||
else:
|
||||
return rule_id
|
||||
return rule_id.removesuffix('_abap').removesuffix('_java')
|
||||
|
||||
|
||||
def compatible_languages(rule, languages_from_sonarpedia):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user