post-grid-carousel-ultimate
Last commit date
.wordpress-org
2 months ago
admin
3 years ago
assets
2 months ago
build
2 weeks ago
includes
2 weeks ago
languages
3 years ago
src
2 months ago
vendor
2 weeks ago
.gitattributes
2 months ago
phpcs.xml.dist
2 months ago
post-grid-and-carousel-ultimate.php
2 weeks ago
readme.txt
2 weeks ago
phpcs.xml.dist
72 lines
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="WordPress Coding Standards"> |
| 3 | <description>Apply WordPress Coding Standards to all Core files</description> |
| 4 | |
| 5 | <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. --> |
| 6 | <arg name="cache" value=".cache/phpcompat.json"/> |
| 7 | |
| 8 | <!-- Set the memory limit to 256M. |
| 9 | For most standard PHP configurations, this means the memory limit will temporarily be raised. |
| 10 | Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#specifying-phpini-settings |
| 11 | --> |
| 12 | <ini name="memory_limit" value="256M"/> |
| 13 | |
| 14 | <!-- Strip the filepaths in reports down to the relevant bit. --> |
| 15 | <arg name="basepath" value="./" /> |
| 16 | |
| 17 | <!-- Check up to 8 files simultaneously. --> |
| 18 | <arg name="parallel" value="8" /> |
| 19 | |
| 20 | <!-- Show progress, show the error codes for each message (source). --> |
| 21 | <arg value="ps" /> |
| 22 | |
| 23 | <!-- Exclude Warnings. --> |
| 24 | <arg value="n" /> |
| 25 | |
| 26 | <file>.</file> |
| 27 | |
| 28 | <!-- Configs --> |
| 29 | <config name="minimum_supported_wp_version" value="4.6" /> |
| 30 | <config name="testVersion" value="7.0-" /> |
| 31 | <arg name="extensions" value="php"/> |
| 32 | <arg name="tab-width" value="4"/> |
| 33 | |
| 34 | <!-- Exclude paths --> |
| 35 | <exclude-pattern>/__*/</exclude-pattern> |
| 36 | <exclude-pattern>/.github</exclude-pattern> |
| 37 | <exclude-pattern>/admin/*</exclude-pattern> |
| 38 | <exclude-pattern>/assets/*</exclude-pattern> |
| 39 | <exclude-pattern>/languages/*</exclude-pattern> |
| 40 | <exclude-pattern>/node_modules/*</exclude-pattern> |
| 41 | <exclude-pattern>/vendor/*</exclude-pattern> |
| 42 | |
| 43 | <!-- Rules --> |
| 44 | <rule ref="WordPress.Security"/> |
| 45 | |
| 46 | <rule ref="WordPress.Security.NonceVerification"> |
| 47 | <properties> |
| 48 | <property name="customNonceVerificationFunctions" type="array"> |
| 49 | <element value="directorist_verify_nonce"/> |
| 50 | </property> |
| 51 | </properties> |
| 52 | </rule> |
| 53 | |
| 54 | <rule ref="WordPress.Security.ValidatedSanitizedInput"> |
| 55 | <properties> |
| 56 | <property name="customSanitizingFunctions" type="array"> |
| 57 | <element value="directorist_clean"/> |
| 58 | <element value="atbdp_sanitize_array"/> |
| 59 | <element value="directorist_update_profile"/> |
| 60 | <element value="directorist_maybe_json"/> |
| 61 | </property> |
| 62 | </properties> |
| 63 | </rule> |
| 64 | <rule ref="WordPress.Security.EscapeOutput"> |
| 65 | <properties> |
| 66 | <property name="customEscapingFunctions" type="array"> |
| 67 | <element value="directorist_kses"/> |
| 68 | <element value="directorist_esc_json"/> |
| 69 | </property> |
| 70 | </properties> |
| 71 | </rule> |
| 72 | </ruleset> |