summaryrefslogtreecommitdiffstats
path: root/.phpcs.xml
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2022-06-18 11:38:26 +0200
committerHarald Eilertsen <haraldei@anduin.net>2022-06-18 11:38:26 +0200
commit0e42a12a33b9bb193fa7851628edf018bd922362 (patch)
treef01c0f82d0d8399f9c502d769c8e182e3b6df153 /.phpcs.xml
parentc0ff4d1d2ca7e4226d718bf11a636f431c470fe6 (diff)
downloadgigologadmin-0e42a12a33b9bb193fa7851628edf018bd922362.tar.gz
gigologadmin-0e42a12a33b9bb193fa7851628edf018bd922362.tar.bz2
gigologadmin-0e42a12a33b9bb193fa7851628edf018bd922362.zip
Add phpcs config and do automatic fixups.
Diffstat (limited to '.phpcs.xml')
-rw-r--r--.phpcs.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.phpcs.xml b/.phpcs.xml
new file mode 100644
index 0000000..26d5659
--- /dev/null
+++ b/.phpcs.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
+ <description>PHPCS configuration for Giglogadmin</description>
+
+ <file>giglogadmin.php</file>
+
+ <exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern>
+ <exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern>
+
+ <arg name="basepath" value="."/>
+ <arg name="colors"/>
+ <arg name="parallel" value="75"/>
+ <arg value="np"/>
+
+ <!-- Don't hide tokenizer exceptions -->
+ <rule ref="Internal.Tokenizer.Exception">
+ <type>error</type>
+ </rule>
+
+ <!-- Include the whole PEAR standard -->
+ <rule ref="WordPress">
+ <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
+ <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
+ </rule>
+</ruleset>