Customizable sniff properties
jrfnl edited this page 2026-02-25 20:33:16 +01:00

Page revisions

63 Commits

Author SHA1 Message Date
jrfnl
2ea9d4d29d
Customizable-sniff-properties: tweak deprecated property info 2026-02-25 20:33:16 +01:00
Rodrigo Primo
f042ae4143 Restore table entry about `allow_single_item_single_line_associative_arrays` 2026-02-25 16:01:39 -03:00
Rodrigo Primo
d93699939e Minor fix to | alignment 2026-02-25 11:44:50 -03:00
Rodrigo Primo
75cadc4fec Add note about the new allow_single_item_single_line_explicit_key_arrays which replaces allow_single_item_single_line_associative_arrays 2026-02-25 11:41:48 -03:00
Rodrigo Primo
90a7544111 Remove change added by mistake in the previous revision 2026-02-06 12:30:44 -03:00
Rodrigo Primo
9c9fb0d645 Arrays/ArrayDeclarationSpacing: replace "associative" with "explicit keys" in property docs 2026-02-06 12:28:27 -03:00
Rodrigo Primo
c4850cc707 The EscapeOutput sniff only supports global function as custom escaping functions 2025-12-12 14:36:41 -03:00
Janw Oostendorp
77bacb7b72
Add an example for escaping static methods 2024-10-02 22:09:55 +02:00
jrfnl
6a276c6762
Customizable properties: fix TOC links 2023-08-21 08:49:43 +02:00
jrfnl
38b22626fa
Customizable properties: update for WordPressCS 3.0.0
* Verified all intentionally `public` properties are listed and added those which were missing/have been added in WPCS 3.0.0.
    Note: there are a couple of sniffs which do have inherited `public` properties, but those are not intended to be changed by end-users. In that case, the sniff is not listed on this page.
* Verified the list of sniffs allowing for the `exclude` property.
    Note: some sniffs, for which the `exclude` property would effectively turn the sniff off, have deliberately not been listed.
* Updated property names for those properties which were renamed and added a notice about the rename.
* Moved information on removed properties/properties on sniffs which were removed, to a separate section at the bottom of the page (in a fold-out).
* Updated some of the code samples.
* Replace the link about nonce verification with a better one.
* Updated some quotes from the WP coding standards manual.
* Added link to info on public properties for sniffs from PHPCSExtra.
* Updated `WPCS` to `WordPressCS`.
* Improved subheaders.
* Tidied up table layouts.
* Removed non-inclusive language.
* Various other minor textual updates.
* Updated the Table of Contents to reflect the new page.
2023-08-21 08:01:04 +02:00
Gary Jones
bbf5cb3462 Updated Customizable sniff properties (markdown) 2023-06-28 01:52:37 +01:00
Gary Jones
19b86d0eca Update custom_test_class_whitelist property information with gotchas and examples 2023-06-27 17:39:28 +01:00
Juliette
439a87d70b Various tweaks, including removing the second property block for the WPCS 2.0.0 removed `ArbitraryParentheses` sniff, updating the TOC and adding "back to top" links. 2018-12-26 16:27:33 +01:00
Gary Jones
611117c2e5 Remove WordPress.Whitespace.ArbitraryParenthesesSpacing reference (see #1581) 2018-12-24 14:22:47 +00:00
Gary Jones
7bf25881c7 Remove previously deprecated, and now removed properties (see #1554) 2018-12-24 14:16:59 +00:00
Juliette
193317850a Minor correction 2018-12-24 00:50:13 +01:00
Juliette
c0a62d2e71 Remove confusing information about array properties vs setting via command line. 2018-12-24 00:41:21 +01:00
Juliette
301db684d9 Remove the "Existing exclusions" section in the "Excluding a group of checks" block. 2018-12-24 00:38:36 +01:00
Gary Jones
6273103ab9 Add note about array property support 2018-12-23 20:02:55 +00:00
Gary Jones
26b58ce66e Array format + VIP removal 2018-12-23 19:39:37 +00:00
Gary Jones
7c65b95de6 Remove redundant title 2018-10-18 14:30:59 +01:00
Dominik Schilling
c32c8be709 Updated Customizable sniff properties (markdown) 2018-10-01 13:07:49 +02:00
Juliette
5dd6435399 Add information about the new `treat_files_as_scoped` property in the `WP.GlobalVariablesOverride` sniff as per PR #1457 2018-09-08 02:02:26 +02:00
Juliette
b7cb2b9187 Add information about the properties in the new `PHP.NoSilencedErrors` sniff 2018-08-28 13:01:44 +02:00
Juliette
656dd96016 Add the `WP.DeprecatedParameterValues` sniff to the section on setting the `minimum_supported_version` . 2018-07-12 22:51:46 +02:00
Juliette
8f07ae50d5 Updated Customizable sniff properties (markdown) 2018-07-12 22:47:33 +02:00
Juliette
23824f3f74 Update the table of contents to reflect changes to section headers 2018-07-01 21:02:30 +02:00
Juliette
58a3b49b29 Update the section on the `exclude` property to reflect the change from string to array as per PR #1390 2018-06-29 22:46:53 +02:00
Juliette
96d00752ca Update group list for the `WP.AlternativeFunctions` `exclude` property as per PR #1271 and #1277 2018-06-29 22:44:51 +02:00
Juliette
9ba0e5df31 Update group list for the `VIP.RestrictedFunctions` `exclude` property as per PR #1012 and #1264 2018-06-29 22:42:52 +02:00
Juliette
0174c4c5e5 Add `SafeRedirect` sniff to the list regarding the `exclude` property as per PR #1264 2018-06-29 22:38:19 +02:00
Juliette
8a9b326877 Add `RestrictedPHPFunctions` sniff to the list regarding the `exclude` property as per PR #1178 2018-06-29 22:36:08 +02:00
Juliette
b0a5b9166a Updated text to account for recategorization of sniffs as per PR #1242 and #1260 2018-06-29 22:19:31 +02:00
Juliette
7a1cfd3a4c Add note about the PHPCS 3.3.0+ array property 2018-06-29 22:04:37 +02:00
Juliette
df3910ca7c Add info on usage of the `minimum_supported_version` property in the `WordPress.WP.AlternativeFunctions` sniff as per PR #1285. 2018-06-28 04:16:46 +02:00
Juliette
e86cb4df39 Update the property name to ignore new lines for the Arrays.MultipleAssignmentAlignment sniff 2017-10-23 20:18:42 +02:00
Juliette
cac23ad582 Updated Customizable sniff properties (markdown) 2017-10-22 23:44:34 +02:00
Juliette
20ef45e9f9 Add information about the properties in the new `WhiteSpace.ArbitraryParenthesesSpacing` sniff 2017-10-22 23:43:36 +02:00
Juliette
38142962db More minor list order changes 2017-10-22 23:07:12 +02:00
Juliette
96f9747242 Minor change in the list order 2017-10-22 23:05:02 +02:00
Juliette
4528a60508 Add information about the new VIP.CronInterval min_interval property 2017-10-09 19:04:09 +02:00
Juliette
7a59b4efa2 Improve textual layout of the info regarding the `alignMultilineItems` property. 2017-10-07 16:56:18 +02:00
Juliette
e2ad4d248b Add information about the properties in the new `Arrays.MultipleStatementAlignment` sniff 2017-10-07 15:42:39 +02:00
Juliette
1a4d276684 Improved updated info about existing exclusions 2017-10-07 14:47:21 +02:00
Juliette
fdcc8e684d Update the "existing exclusions" information now create_function will no longer be excluded 2017-10-07 14:45:37 +02:00
Juliette
df336fa239 Add information about the new VIP.PostsPerPage posts_per_page property 2017-09-23 14:11:43 +02:00
Juliette
2071f276a6 Add information about exempting tokens from the precision alignment sniff 2017-09-23 13:33:21 +02:00
Juliette
34966999d9 Remove duplicate header 2017-09-14 01:44:13 +02:00
Juliette
2c7e24a2b1 Update the table of contents 2017-08-18 18:35:29 +02:00
Juliette
2f588f99b5 Correct the header for the associative array property info 2017-08-18 18:33:09 +02:00