|
2 | 2 | <ruleset name="PHPStan PHPUnit extensions and rules"> |
3 | 3 | <rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml"> |
4 | 4 | <exclude name="Squiz.Functions.GlobalFunction.Found"/> |
5 | | - </rule> |
6 | | - <rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"> |
7 | | - <exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/> |
8 | 5 | <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/> |
9 | | - <exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/> |
| 6 | + <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> |
| 7 | + <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/> |
10 | 8 | <exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/> |
11 | | - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/> |
12 | | - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/> |
13 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.NonFullyQualifiedClassName"/> |
14 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants"/> |
15 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/> |
16 | 9 | </rule> |
17 | 10 | <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"> |
18 | 11 | <properties> |
|
32 | 25 | "/> |
33 | 26 | </properties> |
34 | 27 | </rule> |
| 28 | + <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/> |
| 29 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/> |
| 30 | + <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/> |
| 31 | + <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/> |
| 32 | + <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/> |
| 33 | + <!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/>--> |
| 34 | + <!-- <rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/> --> |
| 35 | + <!-- <rule ref="SlevomatCodingStandard.PHP.ShortList"/> --> |
| 36 | + <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> |
| 37 | + <properties> |
| 38 | + <property name="rootNamespaces" type="array" value="src=>PHPStan,tests=>PHPStan"/> |
| 39 | + </properties> |
| 40 | + </rule> |
35 | 41 | <exclude-pattern>tests/*/data</exclude-pattern> |
36 | 42 | </ruleset> |
0 commit comments