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

Disable rules inline using gherkin comments #268

Open
aleksslitvinovs opened this issue Mar 9, 2022 · 0 comments
Open

Disable rules inline using gherkin comments #268

aleksslitvinovs opened this issue Mar 9, 2022 · 0 comments

Comments

@aleksslitvinovs
Copy link

Having an option to ignore certain files is great but it's quite limiting because it ignores all lining rules for certain files/directories that match the pattern. I believe there should be an option similar to eslint-disable in ESLint (https://eslint.org/docs/2.13.1/user-guide/configuring#disabling-rules-with-inline-comments) or like nolint in golangci-lint (https://golangci-lint.run/usage/false-positives/#nolint-directive).

I'd suggest the following format (the naming can be adjusted)

# gherkin-ignore: name-length
Given I do super long step that exceeds the provided step max length there is an option to ignore it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants