custom-post-type-permalinks
Last commit date
.github
1 year ago
CPTP
1 year ago
assets
5 years ago
language
5 years ago
.distignore
5 years ago
.phpcs.xml.dist
2 years ago
CONTRIBUTING.md
9 years ago
CPTP.php
5 years ago
LICENSE
9 years ago
custom-post-type-permalinks.php
1 year ago
readme.txt
1 year ago
screenshot-1.png
5 years ago
.phpcs.xml.dist
49 lines
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="WordPress Coding Standards based custom ruleset for your plugin"> |
| 3 | <description>Generally-applicable sniffs for WordPress plugins.</description> |
| 4 | <!-- What to scan --> |
| 5 | <file>.</file> |
| 6 | <exclude-pattern>/vendor/</exclude-pattern> |
| 7 | <exclude-pattern>/node_modules/</exclude-pattern> |
| 8 | <exclude-pattern>/wordpress/</exclude-pattern> |
| 9 | <exclude-pattern>/tests/</exclude-pattern> |
| 10 | <!-- How to scan --> |
| 11 | <!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage --> |
| 12 | <!-- Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> |
| 13 | <arg value="sp"/> <!-- Show sniff and progress --> |
| 14 | <arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit --> |
| 15 | <arg name="colors"/> |
| 16 | <arg name="extensions" value="php"/> |
| 17 | <arg name="parallel" value="8"/><!-- Enables parallel processing when available for faster results. --> |
| 18 | |
| 19 | <!-- Rules: Check PHP version compatibility --> |
| 20 | <!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions --> |
| 21 | <config name="testVersion" value="5.3-"/> |
| 22 | <!-- https://github.com/PHPCompatibility/PHPCompatibilityWP --> |
| 23 | <rule ref="PHPCompatibilityWP"/> |
| 24 | <config name="minimum_supported_wp_version" value="4.7"/> |
| 25 | <rule ref="WordPress-Core"> |
| 26 | <exclude name="WordPress.Files.FileName" /> |
| 27 | <exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" /> |
| 28 | <exclude name="WordPress.NamingConventions.ValidHookName" /> |
| 29 | </rule> |
| 30 | <rule ref="WordPress-Docs"/> |
| 31 | <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> |
| 32 | <properties> |
| 33 | <!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. --> |
| 34 | <property name="prefixes" type="array" value="CPTP"/> |
| 35 | </properties> |
| 36 | </rule> |
| 37 | <rule ref="WordPress.WP.I18n"> |
| 38 | <properties> |
| 39 | <!-- Value: replace the text domain used. --> |
| 40 | <property name="text_domain" type="array" value="custom-post-type-permalinks"/> |
| 41 | </properties> |
| 42 | </rule> |
| 43 | <rule ref="WordPress.WhiteSpace.ControlStructureSpacing"> |
| 44 | <properties> |
| 45 | <property name="blank_line_check" value="true"/> |
| 46 | </properties> |
| 47 | </rule> |
| 48 | </ruleset> |
| 49 |