[wp-trac] [WordPress Trac] #57426: Coding Standards: mark warnings that trigger CI failures as errors.

WordPress Trac noreply at wordpress.org
Thu Jan 5 22:41:26 UTC 2023


#57426: Coding Standards: mark warnings that trigger CI failures as errors.
--------------------------------------+-------------------------------
 Reporter:  peterwilsoncc             |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by peterwilsoncc):

 I'm testing this in the linked pull request, currently in draft.

 Warnings only trigger CI errors in the tests directory so this may be more
 complex than at first appearance.

 I guess I want something like the following but I am not sure it is
 possible:


 {{{#!xml
 <rule ref="[as defined in the xml config file">
         <type>error</type>
         <exclude-pattern>/src/*</exclude-pattern> <!-- OR -->
 <file>tests/</file>
 </rule>
 }}}

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


More information about the wp-trac mailing list