mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
PHPCS ruleset: update ruleset for upstream changes
* Fix the name and description to prevent confusion between the project ruleset and the organisation ruleset. * Set the minimum PHP version for the PHPCompatibility standard. * Don't require property type declarations. * Ensure special characters used as literals in an exclude pattern are escaped.
This commit is contained in:
+12
-5
@@ -1,22 +1,29 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset name="phpDocumentor">
|
<ruleset name="ReflectionDocBlock">
|
||||||
<description>The coding standard for phpDocumentor.</description>
|
<description>The coding standard for this library.</description>
|
||||||
|
|
||||||
<file>src</file>
|
<file>src</file>
|
||||||
<file>tests/unit</file>
|
<file>tests/unit</file>
|
||||||
<exclude-pattern>*/tests/unit/Types/ContextFactoryTest.php</exclude-pattern>
|
<exclude-pattern>*/tests/unit/Types/ContextFactoryTest\.php</exclude-pattern>
|
||||||
<exclude-pattern>*/tests/unit/Assets/*</exclude-pattern>
|
<exclude-pattern>*/tests/unit/Assets/*</exclude-pattern>
|
||||||
<arg value="p"/>
|
<arg value="p"/>
|
||||||
|
|
||||||
|
<!-- Set the minimum PHP version for PHPCompatibility.
|
||||||
|
This should be kept in sync with the requirements in the composer.json file. -->
|
||||||
|
<config name="testVersion" value="7.2-"/>
|
||||||
|
|
||||||
<rule ref="phpDocumentor">
|
<rule ref="phpDocumentor">
|
||||||
<exclude name="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException" />
|
<exclude name="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException" />
|
||||||
|
|
||||||
|
<!-- Property type declarations are a PHP 7.4 feature. -->
|
||||||
|
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
|
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
|
||||||
<exclude-pattern>*/src/*/Abstract*.php</exclude-pattern>
|
<exclude-pattern>*/src/*/Abstract*\.php</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod">
|
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod">
|
||||||
<exclude-pattern>*/src/DocBlock/Tags/InvalidTag.php</exclude-pattern>
|
<exclude-pattern>*/src/DocBlock/Tags/InvalidTag\.php</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|||||||
Reference in New Issue
Block a user