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

Support exclude-tags rule #262

Open
Nyaran opened this issue Sep 30, 2022 · 0 comments
Open

Support exclude-tags rule #262

Nyaran opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request rules Issue related with rules

Comments

@Nyaran
Copy link
Owner

Nyaran commented Sep 30, 2022

Some tags should exclude other tags

{
"exclude-tags": [
        "error", {
            "tags": {
                "@foo": ["@bar", "@baz"]
            }
        }
    ],
}
@foo @gplint
Scenario: Valid scenario - Has left side excluded tag, but not the exclusions
    Given lorem ipsum

@bar @gplint
Scenario: Valid scenario - Has right side excluded tag, but not the main tag
    Given lorem ipsum

@foo @bar @gplint
Scenario: Invalid Scenario - Has excluded tags with single match
    Given lorem ipsum

@foo @bar @baz @gplint
Scenario: Invalid Scenario - Has excluded tags with multiple match
    Given lorem ipsum
@Nyaran Nyaran added enhancement New feature or request rules Issue related with rules labels Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rules Issue related with rules
Projects
Development

No branches or pull requests

1 participant