Releases: pantheon-systems/Pantheon-WP-Coding-Standards
Releases · pantheon-systems/Pantheon-WP-Coding-Standards
3.0.1
3.0.0
Breaking Changes
This update adds some changes that will cause previously-passing sniff checks to fail for two three sniffs that are added specifically to our Pantheon-WP and Pantheon-WP-Minimum standards.
Pantheon_WP.Commenting.DisallowMultilineSlashComment.LongLine
- This sniff willERROR
if a comment is longer than 80 columns.Pantheon_WP.Commenting.DisallowMultilineSlashComment.Found
- This sniff willERROR
if there are multiple consecutive comments with//
-style syntax. (/* .... */
syntax preferred).Pantheon_WP_Minimum.Commenting.DisallowMultilineSlashComment.Found
- This sniff willWARN
if there are multiple consecutive comments with//
-style syntax. (/* .... */
syntax preferred). (Note: this is the same as the above, the severity level is lower forPantheon-WP-Minimum
.)Pantheon_WP_Minimum.Files.DisallowRenameFunction.RenameFunctionDisallowed
- This sniff willERROR
if the PHPrename()
function is found (replaces theWordPress.WP.AlternativeFunctions.rename_rename
sniff).
Code should be evaluated against the new changes before upgrading to 3.0.
Dropped support for PHP < 8.0
Updated dependencies of Pantheon WP Coding Standards requires PHP 8.0 or above. If you want to use these standards and are still using PHP 7.x, you will need to use the 2.x versions.
What's Changed
- [SITE-1547] Update CODEOWNERS for new team names by @greg-1-anderson in #8
- [SITE-1547] Add catalog-info.yml by @namespacebrian in #9
- Rename catalog-info.yml to catalog-info.yaml by @namespacebrian in #10
- Add @pantheon-systems/devrel to codeowners for coding standards by @jazzsequence in #13
- add a dependabot.yml for composer updates by @jazzsequence in #14
- Ignore PHP errors related to the version being run by @jazzsequence in #12
- Update fig-r/psr2r-sniffer requirement from ^1.5 to ^2.2 by @dependabot[bot] in #17
- Update yoast/phpunit-polyfills requirement from 1.x-dev to 4.0.0 by @dependabot[bot] in #16
- Add
DisallowRenameFunctionSniff
forrename()
restrictions by @jazzsequence in #18 - Add Pantheon-WP coding standards for comment usage by @jazzsequence in #19
New Contributors
- @greg-1-anderson made their first contribution in #8
- @namespacebrian made their first contribution in #9
- @dependabot[bot] made their first contribution in #17
Full Changelog: 2.0.3...3.0.0
2.0.3
2.0.2
What's Changed
- Exclude linting warning for
$_SERVER['HTTP_USER_AGENT']
by @jazzsequence in #6
Full Changelog: 2.0.1...2.0.2
2.0.1
2.0.0
What's Changed
- Change support badge to actively maintained by @jazzsequence in #3
- [CMSP-616] Update WPCS to 3.0 by @jazzsequence in #4
Full Changelog: 1.0.1...2.0.0
1.0.1
What's Changed
- Ignore WPVIPMinimum rules that suggest VIP-specific functions by @jazzsequence in #2
Full Changelog: 1.0.0...1.0.1
1.0.0
Initial release of Pantheon WP Coding Standards 🎉
Full Changelog: https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/commits/1.0.0