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 Rule::isRegularTarget(): boolean #27

Closed
theofidry opened this issue Jan 7, 2023 · 0 comments · Fixed by #42
Closed

Add Rule::isRegularTarget(): boolean #27

theofidry opened this issue Jan 7, 2023 · 0 comments · Fixed by #42
Labels
enhancement New feature or request

Comments

@theofidry
Copy link
Owner

    /**
     * @return Rule
     */
    private static function getE2ETestRules(): array
    {
        return array_values(
            array_filter(
                self::getParsedRules(),
                static fn (Rule $rule) => str_starts_with($rule->getTarget(), '_test_e2e_') && !$rule->isComment() && !$rule->isPhony(),
            ),
        );
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant