[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards

WordPress Trac noreply at wordpress.org
Thu Jun 15 16:20:16 UTC 2017


#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
 Reporter:  netweb          |       Owner:  pento
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  4.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------

Comment (by jorbin):

 Replying to [comment:17 boonebgorges]:
 > Replying to [comment:16 jorbin]:
 > > 2)  Can we get a pre commit hook on the svn server to block commits
 that don't have the proper format?
 >
 > This feels like something we might want to wait on, as we fine-tune our
 WPCS preferences. That is, we should probably keep the ability to have
 exceptions to the rules while we become accustomed to the rules.

 If we need exceptions, we can mark that in the code with comments. see
 https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-
 parts-of-a-file

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


More information about the wp-trac mailing list