mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
Version 3.0 will include a few crucial deprecations. This commit adds some soft deprecations to warn users about these changes. Some of the biggest changes are: * The method `validate()` will be renamed to `isValid()`. * The method `validate()` will be repurposed to return an object with failures. * It won't be possible to handle rules directly; users will need to use the `Validator` class to validate with any rule. There will some more changes, but those are some of the most important ones, and are the ones that are easy to deprecate right now.
28 lines
1.4 KiB
XML
28 lines
1.4 KiB
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">
|
|
<exclude name="SlevomatCodingStandard.Commenting.ForbiddenAnnotations.AnnotationForbidden" />
|
|
<exclude name="SlevomatCodingStandard.Commenting.UselessInheritDocComment.UselessInheritDocComment" />
|
|
<exclude name="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint" />
|
|
<exclude name="SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall" />
|
|
<exclude name="Generic.Files.LineLength.TooLong" />
|
|
</rule>
|
|
</ruleset>
|