querly icon indicating copy to clipboard operation
querly copied to clipboard

Not defined rules on `check` section

Open ybiquitous opened this issue 5 years ago • 0 comments

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!

ybiquitous avatar Jan 08 '20 07:01 ybiquitous