Skip to content

Not defined rules on check section #69

@ybiquitous

Description

@ybiquitous

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions