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

Add support for showing custom error messages #463

Open
vadlvs opened this issue Dec 6, 2021 · 0 comments
Open

Add support for showing custom error messages #463

vadlvs opened this issue Dec 6, 2021 · 0 comments

Comments

@vadlvs
Copy link

vadlvs commented Dec 6, 2021

Linting requirements can vary from project to project. For instance in our case we have a requirement to show an error message when the number of scenarios exceeds some number. It would be nice to provide an extension point to achieve these kind of requirements.
Can you please let us know if you have anything like this already available / planned for it?

We have gone through the lib/gherkin-linter file and found that onParse callback is already available. This sounded fitting our use case as the callback function do receive cucumber messages object which can be used to lint and generate custom messages but looks like the output of onParse is not being used today. Can put in a PR if you think this method can be used for this purpose. Please share your thoughts!

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