Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.0.0

WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues.

This change includes three notable additions:

  • Multiline function calls must now put each parameter on a new line.
  • Auto-formatting files is now part of the grunt precommit script.
  • Auto-fixable coding standards issues will now cause Travis failures.

Fixes #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/press-this.php

    r42719 r43571  
    3434                        'plugin' => $plugin_file,
    3535                        'from'   => 'press-this',
    36                     ), admin_url( 'plugins.php' )
    37                 ), 'activate-plugin_' . $plugin_file
     36                    ),
     37                    admin_url( 'plugins.php' )
     38                ),
     39                'activate-plugin_' . $plugin_file
    3840            );
    3941            $action = sprintf(
     
    5052                            'plugin' => $plugin_slug,
    5153                            'from'   => 'press-this',
    52                         ), self_admin_url( 'update.php' )
    53                     ), 'install-plugin_' . $plugin_slug
     54                        ),
     55                        self_admin_url( 'update.php' )
     56                    ),
     57                    'install-plugin_' . $plugin_slug
    5458                );
    5559                $action = sprintf(
Note: See TracChangeset for help on using the changeset viewer.