mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Number rules starting at 1
This commit is contained in:
parent
44ecb2fbe7
commit
6fe51e258f
@ -323,7 +323,7 @@ class Transformer:
|
|||||||
|
|
||||||
def transform(self, path: PurePath) -> Optional[PurePath]:
|
def transform(self, path: PurePath) -> Optional[PurePath]:
|
||||||
for i, (line, rule) in enumerate(self._rules):
|
for i, (line, rule) in enumerate(self._rules):
|
||||||
log.explain(f"Testing rule {i}: {line}")
|
log.explain(f"Testing rule {i+1}: {line}")
|
||||||
|
|
||||||
result = rule.transform(path)
|
result = rule.transform(path)
|
||||||
if isinstance(result, PurePath):
|
if isinstance(result, PurePath):
|
||||||
|
Loading…
Reference in New Issue
Block a user