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

[Feature Request] Add schema check for config file #56

Open
ybiquitous opened this issue Feb 7, 2019 · 0 comments
Open

[Feature Request] Add schema check for config file #56

ybiquitous opened this issue Feb 7, 2019 · 0 comments

Comments

@ybiquitous
Copy link
Contributor

To save Querly users from typos on querly.yml, I strongly suggest checking the schema of querly.yml.

For example, because I couldn't notice a typo like except and expect, my configuration (rule2) didn't work well. 😓

check:
  - path: /
    rules:
      - except: rule1
      - expect: rule2

When there are mistakes in the configuration like above, I hope querly check or querly test command fails immediately and outputs an easy message to understand.

For example:

$ querly test
Error: Querly configuration in /path/to/my/project/querly.yml is invalid:
       - Unexpected property "expect".

What do you think about this suggestion?

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