Skip to content

Commit

Permalink
Updated names
Browse files Browse the repository at this point in the history
  • Loading branch information
surge119 committed Aug 2, 2024
1 parent 2494100 commit 9643e5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fixit/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def visit_hook(name: str) -> Iterator[None]:
wrapper.visit_batched(rules)
count = 0
for rule in rules:
self.metrics[f"ViolationCount.{rule.name}"] = len(rule._violations)
self.metrics[f"ViolationCountWithReplacement.{rule.name}"] = 0
self.metrics[f"Count.{rule.name}"] = len(rule._violations)
self.metrics[f"FixCount.{rule.name}"] = 0
for violation in rule._violations:
count += 1

if violation.replacement:
self.metrics[f"ViolationCountWithReplacement.{rule.name}"] += 1
self.metrics[f"FixCount.{rule.name}"] += 1
diff = diff_violation(self.path, self.module, violation)
violation = replace(violation, diff=diff)

Expand Down

0 comments on commit 9643e5f

Please sign in to comment.