[wp-trac] [WordPress Trac] #59161: Composer: update to WordPressCS 3.0.0
WordPress Trac
noreply at wordpress.org
Sun Oct 8 13:08:01 UTC 2023
#59161: Composer: update to WordPressCS 3.0.0
------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.4
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"56799" 56799]:
{{{
#!CommitTicketReference repository="" revision="56799"
Coding Standards: Upgrade WPCS to version 3.0.1.
In WordPressCS 3.0.0, the functionality of the
`WordPress.Security.EscapeOutput` sniff was updated to report unescaped
message parameters passed to exceptions created in `throw` statements.
This specific violation now has a separate error code:
`ExceptionNotEscaped`. This will allow users to ignore or exclude that
specific error code.
The error code(s) for other escaping issues flagged by the sniff remain
unchanged.
References:
* [https://github.com/WordPress/WordPress-Coding-
Standards/releases/tag/3.0.1 WPCS 3.0.1 release notes]
* [https://github.com/WordPress/WordPress-Coding-
Standards/compare/3.0.0...3.0.1 Full list of changes in WPCS 3.0.1]
Follow-up to [56695].
Props jrf, bjorsch, dawidurbanski.
See #59161.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59161#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list