[wp-trac] [WordPress Trac] #44600: Update WPCS to 1.0.0, and enforce coding standards

WordPress Trac noreply at wordpress.org
Fri Aug 17 00:32:23 UTC 2018


#44600: Update WPCS to 1.0.0, and enforce coding standards
------------------------------+-------------------------------
 Reporter:  pento             |       Owner:  pento
     Type:  task (blessed)    |      Status:  assigned
 Priority:  normal            |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  coding-standards
------------------------------+-------------------------------

Comment (by pento):

 Replying to [comment:14 jrf]:
 > Correct, this is impossible to auto-fix, though it will be relatively
 easy to write a sniff to warn against multi-line parameters (`line count >
 param count`), but how to handle function calls with inline comments ?

 Would it be possible to write a sniff for `param line count > 1`? It seems
 like that would take care of the cases where inline comments or blank
 lines exist inside the function call.

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


More information about the wp-trac mailing list