[wp-trac] [WordPress Trac] #45934: Coding Standards: Manual Fixes

WordPress Trac noreply at wordpress.org
Sat Jan 12 06:45:25 UTC 2019


#45934: Coding Standards: Manual Fixes
----------------------------+-------------------------------
 Reporter:  pento           |       Owner:  pento
     Type:  task (blessed)  |      Status:  assigned
 Priority:  low             |   Milestone:  5.1
Component:  General         |     Version:
 Severity:  minor           |  Resolution:
 Keywords:                  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by pento):

 {{{
 PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
 ----------------------------------------------------------------------
 SOURCE                                                           COUNT
 ----------------------------------------------------------------------
 Squiz.PHP.DisallowMultipleAssignments.Found                      882
 WordPress.PHP.YodaConditions.NotYoda                             691
 WordPress.WP.I18n.MissingTranslatorsComment                      585
 WordPress.NamingConventions.ValidVariableName.NotSnakeCase       397
 WordPress.DB.PreparedSQL.NotPrepared                             334
 WordPress.PHP.NoSilencedErrors.Discouraged                       165
 WordPress.WhiteSpace.PrecisionAlignment.Found                    149
 WordPress.NamingConventions.ValidHookName.UseUnderscores         69
 WordPress.Files.FileName.InvalidClassFileName                    50
 WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid  43
 WordPress.NamingConventions.ValidFunctionName.FunctionNameInval  18
 WordPress.NamingConventions.ValidHookName.NotLowercase           14
 WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnd  9
 PEAR.NamingConventions.ValidClassName.StartWithCapital           8
 PEAR.NamingConventions.ValidClassName.Invalid                    6
 WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare           5
 WordPress.DB.PreparedSQLPlaceholders.UnquotedComplexPlaceholder  4
 WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber     3
 WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGe  1
 WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder     1
 ----------------------------------------------------------------------
 A TOTAL OF 3434 SNIFF VIOLATIONS WERE FOUND IN 20 SOURCES
 ----------------------------------------------------------------------
 }}}

 Along with upgrading WPCS in #45956, we're making some progress here. 🙂

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


More information about the wp-trac mailing list