querly
querly copied to clipboard
Not defined rules on `check` section
Even if the following incorrect querly.yml is given, Querly succeeds.
I think good that the querly test command could tell such incorrectness.
# querly.yml
rules:
- id: sample.foo
pattern:
- self.p
- self.pp
message: Delete debug print
check:
- path: /
rules:
- except: sample.test #<= Not defined!
- path: /test
rules:
- append: sample.test #<= Not defined!
$ querly test
Checking rule id uniqueness...
Checking rule patterns...
Tested 1 rules with 0 tests.
All tests green!