Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not defined rules on check section #69

Open
ybiquitous opened this issue Jan 8, 2020 · 0 comments
Open

Not defined rules on check section #69

ybiquitous opened this issue Jan 8, 2020 · 0 comments

Comments

@ybiquitous
Copy link
Contributor

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant