[wp-trac] [WordPress Trac] #47632: Coding Standards fixes for WP 5.3

WordPress Trac noreply at wordpress.org
Tue Jul 2 23:44:52 UTC 2019


#47632: Coding Standards fixes for WP 5.3
----------------------------+-------------------------------
 Reporter:  pento           |       Owner:  pento
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  5.3
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by pento):

 Progress!

 {{{
 PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
 ----------------------------------------------------------------------
 SOURCE                                                           COUNT
 ----------------------------------------------------------------------
 WordPress.PHP.YodaConditions.NotYoda                             673
 WordPress.WP.I18n.MissingTranslatorsComment                      557
 WordPress.NamingConventions.ValidVariableName.VariableNotSnakeC  405
 WordPress.DB.PreparedSQL.InterpolatedNotPrepared                 231
 WordPress.PHP.NoSilencedErrors.Discouraged                       166
 WordPress.WhiteSpace.PrecisionAlignment.Found                    129
 WordPress.DB.PreparedSQL.NotPrepared                             125
 WordPress.NamingConventions.ValidHookName.UseUnderscores         69
 WordPress.Files.FileName.InvalidClassFileName                    48
 WordPress.NamingConventions.ValidHookName.NotLowercase           14
 WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSn  8
 PEAR.NamingConventions.ValidClassName.StartWithCapital           7
 PEAR.NamingConventions.ValidClassName.Invalid                    6
 WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare           5
 WordPress.DB.PreparedSQLPlaceholders.UnquotedComplexPlaceholder  4
 WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber     3
 WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeC  2
 WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGe  1
 WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder     1
 ----------------------------------------------------------------------
 A TOTAL OF 2454 SNIFF VIOLATIONS WERE FOUND IN 19 SOURCES
 ----------------------------------------------------------------------

 }}}

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


More information about the wp-trac mailing list