RULEAPI-821 Skip all profile files, not only Sonar_way_profile

This commit is contained in:
Fred Tingaud 2024-12-10 15:06:25 +01:00 committed by Fred Tingaud
parent a6f4f03031
commit c480f9a4b0

View File

@ -73,7 +73,7 @@ def get_implemented_rules(path, languages_from_sonarpedia):
for lang in languages_from_sonarpedia:
implemented_rules[lang] = []
for filename in os.listdir(path):
if filename.endswith(".json") and not filename.startswith("Sonar_way"):
if filename.endswith(".json") and 'profile' not in filename:
rule = load_json(os.path.join(path, filename))
rule_id = get_rule_id(filename)
for language in compatible_languages(rule, languages_from_sonarpedia):