everest-forms
Last commit date
assets
7 years ago
includes
7 years ago
languages
7 years ago
templates
7 years ago
everest-forms.php
7 years ago
license.txt
8 years ago
package-lock.json
7 years ago
phpcs.xml
7 years ago
readme.txt
7 years ago
uninstall.php
7 years ago
phpcs.xml
61 lines
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="WordPress Coding Standards"> |
| 3 | <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> |
| 4 | <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml --> |
| 5 | |
| 6 | <description>Everest Forms dev PHP_CodeSniffer ruleset.</description> |
| 7 | |
| 8 | <!-- Exclude paths --> |
| 9 | <exclude-pattern>includes/libraries/</exclude-pattern> |
| 10 | <exclude-pattern>includes/evf-deprecated-functions.php</exclude-pattern> |
| 11 | <exclude-pattern>includes/abstracts/legacy/</exclude-pattern> |
| 12 | <exclude-pattern>*/node_modules/*</exclude-pattern> |
| 13 | <exclude-pattern>*/vendor/*</exclude-pattern> |
| 14 | |
| 15 | <!-- Configs --> |
| 16 | <config name="minimum_supported_wp_version" value="4.7" /> |
| 17 | <config name="testVersion" value="5.2-"/> |
| 18 | |
| 19 | <!-- Rules --> |
| 20 | <rule ref="WPEverest-Core" /> |
| 21 | <rule ref="PHPCompatibility"> |
| 22 | <exclude name="PHPCompatibility.PHP.NewKeywords.t_namespaceFound" /> |
| 23 | </rule> |
| 24 | |
| 25 | <rule ref="WordPress"> |
| 26 | <exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching" /> |
| 27 | <exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery" /> |
| 28 | <exclude name="WordPress.VIP.DirectDatabaseQuery.SchemaChange" /> |
| 29 | <exclude name="WordPress.VIP.FileSystemWritesDisallow.file_ops_fwrite" /> |
| 30 | <exclude name="WordPress.VIP.RestrictedFunctions" /> |
| 31 | <exclude name="WordPress.VIP.SlowDBQuery.slow_db_query_meta_query" /> |
| 32 | <exclude name="WordPress.VIP.RestrictedVariables.user_meta__wpdb__usermeta" /> |
| 33 | <exclude name="WordPress.VIP.RestrictedVariables.cache_constraints___COOKIE" /> |
| 34 | </rule> |
| 35 | <rule ref="WordPress.VIP.ValidatedSanitizedInput"> |
| 36 | <properties> |
| 37 | <property name="customSanitizingFunctions" type="array" value="evf_clean,evf_sanitize_tooltip,evf_sanitize_textarea" /> |
| 38 | </properties> |
| 39 | </rule> |
| 40 | <rule ref="WordPress.XSS.EscapeOutput"> |
| 41 | <properties> |
| 42 | <property name="customEscapingFunctions" type="array" value="evf_help_tip,evf_sanitize_tooltip,evf_selected" /> |
| 43 | </properties> |
| 44 | </rule> |
| 45 | <rule ref="PEAR.NamingConventions.ValidClassName"> |
| 46 | <exclude-pattern>includes/</exclude-pattern> |
| 47 | </rule> |
| 48 | <rule ref="WordPress.Files.FileName.InvalidClassFileName"> |
| 49 | <exclude-pattern>includes/class-everest-forms.php</exclude-pattern> |
| 50 | </rule> |
| 51 | <rule ref="WordPress.WP.I18n"> |
| 52 | <properties> |
| 53 | <property name="text_domain" type="array" value="everest-forms" /> |
| 54 | </properties> |
| 55 | </rule> |
| 56 | <rule ref="Squiz.Commenting"> |
| 57 | <exclude name="Squiz.Commenting.LongConditionClosingComment" /> |
| 58 | <exclude name="Squiz.Commenting.PostStatementComment" /> |
| 59 | </rule> |
| 60 | </ruleset> |
| 61 |