[wp-trac] [WordPress Trac] #59161: Composer: update to WordPressCS 3.0.0

WordPress Trac noreply at wordpress.org
Fri Sep 15 10:45:34 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:"56594" 56594]:
 {{{
 #!CommitTicketReference repository="" revision="56594"
 Coding Standards: Remove the custom property for the `FileName` sniff.

 Test files should comply with the naming conventions accepted by PHPUnit,
 not with the WP naming conventions.

 While the `WordPress.File.FileName` sniff makes a best effort to prevent
 throwing errors for files containing test classes, the recommended manner
 to deal with test files is to exclude the complete test directory from
 being subject to this sniff.

 This updates the ruleset to follow the recommendation.

 Follow-up to [42346], [45607].

 Props jrf.
 See #59161.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59161#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list