Add the phpcs.xml configuration file

This commit is contained in:
2022-11-25 21:57:55 +01:00
parent f2444f0247
commit 4574b3ec1e

14
phpcs.xml Normal file
View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="DomFramework" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<config name="installed_paths"
value="vendor/object-calisthenics/phpcs-calisthenics-rules/src/,vendor/wp-coding-standards /wpcs/,vendor/escapestudios/symfony2-coding-standard/Symfony/,vendor/slevomat/coding-standard/"/>
<config name="ignore_warnings_on_exit" value="1"/>
<arg name="basepath" value="."/>
<arg name="cache" value="var/.phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>src/</file>
<!--<file>Tests/</file>-->
<rule ref="PSR12"/>
</ruleset>