Ignoring module name violations

This commit is contained in:
Lukas Horst 2024-10-24 20:59:45 +02:00
parent f8422f33fb
commit f5b7931dc9
2 changed files with 8 additions and 2 deletions

View file

@ -102,12 +102,13 @@ class ViolationChecker:
violation_string += f'-----{violation_group}-----\n{violation_groups_strings[i]}'
violation_amount = self.count_violations(i)
total_violations = f'\nFehler Insgesamt: {violation_amount}'
possible_deduction = f'Möglicher Abzug: {self.count_deduction(i, 100)}'
possible_deduction = (f'Möglicher Abzug: {self.count_deduction(i, 100)} '
f'Punkte')
deduction = f'Abzug: {self.count_deduction(i, violation_amount)} Punkte\n\n'
violation_string += f'{total_violations} {possible_deduction} {deduction}'
if i == 9:
total_violations = f'\nFehler Insgesamt: {violation_amount}'
possible_deduction = f'Möglicher Abzug: 0'
possible_deduction = f'Möglicher Abzug: 0 Punkte'
deduction = 'Abzug: 0 Punkte'
violation_string += f'{total_violations} {possible_deduction} {deduction}'
return violation_string