diff options
| author | danix <danix@danix.xyz> | 2020-11-04 12:09:18 +0100 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2020-11-04 12:09:18 +0100 |
| commit | 09a20ca4916ec0f26a9d944ae2de8657050d2bc8 (patch) | |
| tree | 59b14c678feed9bb0d3ab8207cb5c64314e7b513 | |
| parent | b96bc7586a5d69d408041a66d40a483f837e5e39 (diff) | |
| download | danixland-contact-form-09a20ca4916ec0f26a9d944ae2de8657050d2bc8.tar.gz danixland-contact-form-09a20ca4916ec0f26a9d944ae2de8657050d2bc8.zip | |
added lint rules file to repository
| -rw-r--r-- | phpcs.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..9e19d6e --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="dagreynix" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> + <description>danix Wordpress Coding Standards</description> + + <!-- Scan all files in directory --> + <file>.</file> + + <!-- Scan only PHP files --> + <arg name="extensions" value="php"/> + + <!-- Show colors in console --> + <arg value="-colors"/> + + <!-- Show sniff codes in all reports --> + <arg value="ns"/> + + <!-- Include the WordPress-Extra standard. --> + <rule ref="WordPress-Extra"> + <!-- Exclude any rules here --> + <exclude name="WordPress.PHP.DisallowShortTernary"/> + </rule> + + <!-- Let's also check that everything is properly documented. --> + <!-- <rule ref="WordPress-Docs"/> --> + + <!-- Add in some extra rules from other standards. --> + <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/> + <rule ref="Generic.Commenting.Todo"/> + + <config name="minimum_supported_wp_version" value="4.9"/> +</ruleset>
\ No newline at end of file |
