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

Validate ruleset against XML schema #85

Merged
merged 1 commit into from
Sep 3, 2018
Merged

Validate ruleset against XML schema #85

merged 1 commit into from
Sep 3, 2018

Conversation

Majkl578
Copy link
Contributor

@Majkl578 Majkl578 commented Sep 3, 2018

Validate against XML Schema on CI.

type="boolean" has apparently no effect:
https://github.com/squizlabs/PHP_CodeSniffer/blob/3.1.1/src/Ruleset.php#L925-L982
and type conversion is done by magic instead: https://github.com/squizlabs/PHP_CodeSniffer/blob/3.1.1/src/Ruleset.php#L1232-L1253

@Majkl578 Majkl578 added this to the 5.0.0 milestone Sep 3, 2018
@Majkl578 Majkl578 requested a review from a team as a code owner September 3, 2018 17:48
@greg0ire
Copy link
Member

greg0ire commented Sep 3, 2018

https://github.com/squizlabs/PHP_CodeSniffer/blob/3.1.1/src/Ruleset.php#L1274-L1294

🤔 maybe you meant to link to something else, because this seems to be about ignore patterns… or maybe I lack the context to understand what this has to do with type conversion.

@Majkl578
Copy link
Contributor Author

Majkl578 commented Sep 3, 2018

maybe you meant to link to something else

Fixed, that one was from master (so wrong line numbers) which is even more magical. 😁

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

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

My XML shenanigans were caught by the validation. 👍

@Ocramius Ocramius self-assigned this Sep 3, 2018
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

🚢

@Ocramius Ocramius merged commit c3abeae into master Sep 3, 2018
@Ocramius Ocramius deleted the validate-ruleset branch September 3, 2018 21:01
@deeky666
Copy link
Member

deeky666 commented Sep 4, 2018

👍

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.

None yet

6 participants