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

WordPress Trac noreply at wordpress.org
Fri Jan 11 06:42:22 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):

 Progress!

 {{{
 PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
 ----------------------------------------------------------------------
 SOURCE                                                           COUNT
 ----------------------------------------------------------------------
 Squiz.PHP.DisallowMultipleAssignments.Found                      906
 WordPress.PHP.YodaConditions.NotYoda                             692
 WordPress.WP.I18n.MissingTranslatorsComment                      585
 WordPress.NamingConventions.ValidVariableName.NotSnakeCase       423
 WordPress.DB.PreparedSQL.NotPrepared                             334
 Generic.PHP.NoSilencedErrors.Discouraged                         288
 WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMembe  268
 WordPress.WhiteSpace.PrecisionAlignment.Found                    155
 WordPress.NamingConventions.ValidHookName.UseUnderscores         69
 WordPress.Files.FileName.InvalidClassFileName                    52
 WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid  43
 WordPress.NamingConventions.ValidFunctionName.FunctionNameInval  18
 WordPress.NamingConventions.ValidHookName.NotLowercase           14
 WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCas  11
 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.PHP.DontExtract.extract_extract                        4
 WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber     3
 WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGe  1
 WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder     1
 WordPress.NamingConventions.ValidVariableName.StringNotSnakeCas  1
 ----------------------------------------------------------------------
 A TOTAL OF 3900 SNIFF VIOLATIONS WERE FOUND IN 24 SOURCES
 ----------------------------------------------------------------------
 }}}

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


More information about the wp-trac mailing list