WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
209 stars 37 forks source link

Rulesets: Add XSD schema tags and validate rulesets against schema (PHPCS 3.2+/3.3.2+) #220

Closed jrfnl closed 5 years ago

jrfnl commented 5 years ago

As of PHPCS 3.2.0, PHPCS includes an XSD schema for rulesets which defines what can be used in the XML ruleset file.

In PHPCS 3.3.0 a new array format for properties was introduced and as of PHPCS 3.3.2, the new array format is now also covered by this schema.

This commit:

Fixes #175