Skip to content

Ruleset: add tests for handling of php[cs|cbf]-only attributes within a <ruleset> #711

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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 22, 2024

Description

Add tests specifically aimed at verifying phpcs-only and phpcbf-only attributes for elements within a <ruleset> are read and handled correctly.

Suggested changelog entry

N/A

Related issues/external references

This PR is part of a series of PRs expanding the tests for the Ruleset class.

…in a `<ruleset>`

Add tests specifically aimed at verifying `phpcs-only` and `phpcbf-only` attributes for elements within a `<ruleset>` are read and handled correctly.
Copy link
Contributor

@rodrigoprimo rodrigoprimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests for this part of the Ruleset class, @jrfnl!

Overall, it looks good to me. I left an inline comment with a tiny detail.

Besides that, I wonder if you considered adding tests for elements that support the php[cs|cbf]-only attributes but are not covered by these tests, like <severity> and <property>?

Update: ignore the paragraph above; somehow, I missed #712 when I looked at the other open PRs before reviewing this one.

@jrfnl jrfnl merged commit cb96819 into master Dec 2, 2024
57 checks passed
@jrfnl jrfnl deleted the feature/ruleset-add-tests-for-handling-phpcs-phpcbf-only-ruleset-level branch December 2, 2024 21:52
jrfnl added a commit that referenced this pull request Dec 2, 2024
…in a `<ruleset>` (#711)

Add tests specifically aimed at verifying `phpcs-only` and `phpcbf-only` attributes for elements within a `<ruleset>` are read and handled correctly.
jrfnl added a commit that referenced this pull request Dec 2, 2024
…in a `<ruleset>` (#711)

Add tests specifically aimed at verifying `phpcs-only` and `phpcbf-only` attributes for elements within a `<ruleset>` are read and handled correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants