diff --git a/WordPress-Core/ruleset.xml b/WordPress-Core/ruleset.xml index 11a6e3fd76..32f1bd0e11 100644 --- a/WordPress-Core/ruleset.xml +++ b/WordPress-Core/ruleset.xml @@ -245,7 +245,7 @@ - + -

- -

- diff --git a/WordPress/Tests/WhiteSpace/PrecisionAlignmentUnitTest.5.inc b/WordPress/Tests/WhiteSpace/PrecisionAlignmentUnitTest.5.inc deleted file mode 100644 index 4fb786f100..0000000000 --- a/WordPress/Tests/WhiteSpace/PrecisionAlignmentUnitTest.5.inc +++ /dev/null @@ -1,58 +0,0 @@ -tabWidth = $this->tab_width; - - // Testing a file with "--ignore-annotations". - if ( 'PrecisionAlignmentUnitTest.6.inc' === $testFile ) { - $config->annotations = false; - } - } - - /** - * Returns the lines where errors should occur. - * - * @return array => - */ - public function getErrorList() { - return array(); - } - - /** - * Returns the lines where warnings should occur. - * - * @param string $testFile The name of the file being tested. - * - * @return array => - */ - public function getWarningList( $testFile = '' ) { - $phpcs_version = Helper::getVersion(); - $is_phpcs_4 = version_compare( $phpcs_version, '3.99.99', '>' ); - - switch ( $testFile ) { - case 'PrecisionAlignmentUnitTest.1.inc': - return array( - 20 => 1, - 27 => 1, - 30 => 1, - 31 => 1, - 32 => 1, - 34 => 1, // Old-style WPCS ignore comments are no longer supported. - 39 => 1, - 65 => 1, - ); - - case 'PrecisionAlignmentUnitTest.4.inc': - return array( - 1 => 1, - 2 => 1, - 3 => 1, - 4 => 1, - 5 => 1, - ); - - case 'PrecisionAlignmentUnitTest.5.inc': - return array( - 9 => 1, - 14 => 1, - 19 => 1, - 24 => 1, - 29 => 1, - 34 => 1, - 39 => 1, - 44 => 1, - 54 => 1, - 56 => 1, - 58 => 1, - ); - - case 'PrecisionAlignmentUnitTest.6.inc': - return array( - 4 => 1, - ); - - case 'PrecisionAlignmentUnitTest.css': - return array( - 4 => ( true === $is_phpcs_4 ? 0 : 1 ), - ); - - case 'PrecisionAlignmentUnitTest.js': - return array( - 4 => ( true === $is_phpcs_4 ? 0 : 1 ), - 5 => ( true === $is_phpcs_4 ? 0 : 1 ), - 6 => ( true === $is_phpcs_4 ? 0 : 1 ), - ); - - case 'PrecisionAlignmentUnitTest.2.inc': - case 'PrecisionAlignmentUnitTest.3.inc': - default: - return array(); - } - } - -}