wordpress-develop/tests/phpunit/tests/formatting
Sergey Biryukov ff96003a0f Coding Standards: Upgrade WPCS to version 3.0.0.
This is an important release which makes significant changes to improve the accuracy, performance, stability and maintainability of all sniffs, as well as making WordPressCS much better at handling modern PHP.

WordPressCS 3.0.0 contains breaking changes, both for people using ignore annotations, people maintaining custom rulesets, as well as for sniff developers who maintain a custom PHPCS standard based on WordPressCS.

If you are an end-user or maintain a custom WordPressCS based ruleset, please start by reading the [https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-ruleset-maintainers Upgrade Guide to WordPressCS 3.0.0 for ruleset maintainers] which lists the most important changes and contains a step by step guide for upgrading.

If you are a maintainer of an external standard based on WordPressCS and any of your custom sniffs are based on or extend WordPressCS sniffs, please read the [https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-Developers-of-external-standards Upgrade Guide to WordPressCS 3.0.0 for Developers].

In all cases, please read the complete changelog carefully before you upgrade.

This commit:
* Updates the Composer dependencies to use the new version, including updating the underlying PHP_CodeSniffer dependency to the new minimum supported version for WPCS.[[BR]] Note: the Composer PHPCS installer plugin is no longer explicitly required as it is now a dependency of WPCS, so the dependency is inherited automatically.
* Updates the ruleset for WPCS 3.0.0. This includes:
 * Raising the memory limit to be on the safe side as WPCS 3.0.0 contains a lot more sniffs.
 * Removing explicit inclusions of extra rules, which have now been added to the `WordPress-Core` ruleset..
 * Updating property names for select sniffs.
 * Updating one exclusion — the `WordPress.CodeAnalysis.AssignmentInCondition` sniff has been (partially) replaced by the `Generic.CodeAnalysis.AssignmentInCondition` sniff.
 * Adding one new exclusion.
* Downgrades one new error to a warning.[[BR]] The `Generic.Files.OneObjectStructurePerFile` sniff enforces that there is only one OO structure declaration per file. At this time, this sniff would yield 29 errors. By downgrading the sniff to a ''warning'', the build can pass and the issues can be fixed in due time. For now, the test directory will be excluded until the issues are fixed (as the test directory CS run does not allow for warnings).
* Updates ignore annotations for WPCS 3.0.0.

Reference: [https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0 WPCS 3.0.0 release notes].

Follow-up to [43571], [44574], [45600], [47927].

Props jrf, jorbin, desrosj.
See #59161.

git-svn-id: https://develop.svn.wordpress.org/trunk@56695 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-26 00:24:43 +00:00
..
balanceTags.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
capitalPDangit.php Coding Standards: Upgrade WPCS to version 3.0.0. 2023-09-26 00:24:43 +00:00
cleanPre.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
convertInvalidEntities.php Build/Test Tools: Fix erroneous file name, from convertInvalidEntries.php to convertInvalidEntities.php. 2022-06-23 20:34:26 +00:00
convertSmilies.php Tests: Improve documentation and variable names in some formatting tests. 2023-03-19 12:51:14 +00:00
date.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
emoji.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
ent2ncr.php Coding Standards: Remove superfluous blank lines at the end of various files. 2023-09-07 14:57:30 +00:00
escAttr.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
escHtml.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
escJs.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
escTextarea.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
escUrl.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
escXml.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
excerptRemoveBlocks.php Tests: Move some @covers tags in the formatting group to the class DocBlock. 2022-10-31 13:54:00 +00:00
excerptRemoveFootnotes.php Editor: trim footnote anchors from post excerpts. 2023-07-17 01:45:24 +00:00
getBloginfo.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
getUrlInContent.php Tests: Improve documentation and variable names in some formatting tests. 2023-03-19 12:51:14 +00:00
humanTimeDiff.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
isEmail.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
likeEscape.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
linksAddTarget.php Tests: Improve documentation and variable names in some formatting tests. 2023-03-19 12:51:14 +00:00
makeClickable.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
mapDeep.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
normalizeWhitespace.php Tests: Improve documentation and variable names in some formatting tests. 2023-03-19 12:51:14 +00:00
redirect.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
removeAccents.php Formatting: Normalize to Unicode NFC encoding before converting accent characters in remove_accents(). 2022-07-21 21:09:56 +00:00
sanitizeFileName.php Media: Replace consecutive periods in sanitize_file_name(). 2023-02-03 12:46:18 +00:00
sanitizeKey.php Tests: Move some @covers tags in the formatting group to the class DocBlock. 2022-10-31 13:54:00 +00:00
sanitizeLocaleName.php I18N: Introduce sanitization function for locale. 2023-05-16 14:16:39 +00:00
sanitizeMimeType.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
sanitizeOrderby.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
sanitizePost.php Tests: Move some @covers tags in the formatting group to the class DocBlock. 2022-10-31 13:54:00 +00:00
sanitizeTextField.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
sanitizeTitle.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
sanitizeTitleWithDashes.php Formatting: Strip object replacement characters from slugs. 2022-10-11 10:27:00 +00:00
sanitizeTrackbackUrls.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
sanitizeUser.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
seemsUtf8.php Coding Standards: Remove superfluous blank lines at the end of various files. 2023-09-07 14:57:30 +00:00
slashit.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
stripslashesDeep.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
urlencodeDeep.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
urlShorten.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
utf8UriEncode.php Coding Standards: Remove superfluous blank lines at the end of various files. 2023-09-07 14:57:30 +00:00
wpAutop.php Tests: Ignore EOL differences in a wpautop() test for <math> block elements. 2023-03-01 15:56:39 +00:00
wpBasename.php Tests: Move some @covers tags in the formatting group to the class DocBlock. 2022-10-31 13:54:00 +00:00
wpHtmleditPre.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
wpHtmlExcerpt.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
wpHtmlSplit.php Tests: Move some @covers tags in the formatting group to the class DocBlock. 2022-10-31 13:54:00 +00:00
wpIsoDescrambler.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
wpMakeLinkRelative.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpParseStr.php Tests: Improve documentation and variable names in some formatting tests. 2023-03-19 12:51:14 +00:00
wpRelNofollow.php Comments: Improve rel attribute usage in comments. 2023-02-07 18:52:24 +00:00
wpRelUgc.php Comments: Improve rel attribute usage in comments. 2023-02-07 18:52:24 +00:00
wpReplaceInHtmlTags.php Coding Standards: Remove superfluous blank lines at the end of various files. 2023-09-07 14:57:30 +00:00
wpRicheditPre.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
wpSlash.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpSpecialchars.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
wpStripAllTags.php Coding Standards: Remove superfluous blank lines at the end of various files. 2023-09-07 14:57:30 +00:00
wpTargetedLinkRel.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpTexturize.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
wpTrimExcerpt.php Media: Ensure images within shortcodes are correctly considered for loading optimization attributes. 2023-09-26 00:11:06 +00:00
wpTrimWords.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00
zeroise.php Build/Test Tools, Formatting group: 2022-06-23 20:27:34 +00:00