mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-30 04:29:20 +01:00
64 lines
3.4 KiB
XML
64 lines
3.4 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="PHPStan PHPDoc Parser">
|
|
<rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml">
|
|
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.InvalidFormat"/>
|
|
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
|
|
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
|
|
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
|
|
<exclude name="Consistence.Exceptions.ExceptionDeclaration"/>
|
|
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
|
|
<exclude name="Squiz.Commenting.FunctionComment.ParamNameNoMatch"/>
|
|
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
|
|
<properties>
|
|
<property name="caseSensitive" value="false"/>
|
|
</properties>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
|
|
<properties>
|
|
<property name="newlinesCountBetweenOpenTagAndDeclare" value="0"/>
|
|
</properties>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
|
|
<properties>
|
|
<property name="usefulAnnotations" type="array" value="
|
|
@dataProvider,
|
|
@requires
|
|
"/>
|
|
<property name="enableObjectTypeHint" value="false"/>
|
|
</properties>
|
|
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
|
|
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
|
|
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/>
|
|
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
|
|
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/>
|
|
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
|
|
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
|
|
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/>
|
|
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
|
|
<properties>
|
|
<property name="rootNamespaces" type="array" value="src=>PHPStan\PhpDocParser,tests/PHPStan=>PHPStan\PhpDocParser"/>
|
|
</properties>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
|
|
<rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
|
|
<rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/>
|
|
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/>
|
|
<rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing"/>
|
|
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable"/>
|
|
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>
|
|
<!--<rule ref="SlevomatCodingStandard.Functions.UnusedParameter"/>-->
|
|
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/>
|
|
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/>
|
|
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
|
|
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses"/>
|
|
<exclude-pattern>tests/*/data</exclude-pattern>
|
|
<exclude-pattern>tests/*/traits</exclude-pattern>
|
|
<exclude-pattern>tests/notAutoloaded</exclude-pattern>
|
|
<exclude-pattern>src/Reflection/SignatureMap/functionMap.php</exclude-pattern>
|
|
</ruleset>
|