mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
We were not running PHPStan on those files because of the strict types declaration. However, I decided it would be better not to have strict types on those files than not to run PHPStan issues. Not surprisingly, there were several issues. Some issues were impacting how user-friendly the library is.
24 lines
800 B
XML
24 lines
800 B
XML
<?xml version="1.0"?>
|
|
<ruleset
|
|
name="PHPCS Coding Standards for Respect"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
|
|
>
|
|
<arg name="basepath" value="." />
|
|
<arg name="cache" value=".phpcs.cache" />
|
|
<arg name="colors" />
|
|
<arg name="extensions" value="php,phpt" />
|
|
<arg value="p" />
|
|
<arg value="s" />
|
|
|
|
<file>library/</file>
|
|
<file>tests/</file>
|
|
|
|
<rule ref="Respect" />
|
|
<rule ref="Generic.Files.LineLength.TooLong">
|
|
<exclude-pattern>tests/integration/</exclude-pattern>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing">
|
|
<exclude-pattern>tests/integration/</exclude-pattern>
|
|
</rule>
|
|
</ruleset>
|