forked from alcaeus/phpstan
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
Latest commit
46 lines (46 loc) · 2.28 KB
/
Copy pathphpcs.xml
File metadata and controls
46 lines (46 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<rulesetname="PHPStan">
<ruleref="vendor/consistence/coding-standard/Consistence/ruleset.xml">
<excludename="Squiz.Functions.GlobalFunction.Found"/>
</rule>
<ruleref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<excludename="SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility"/>
<excludename="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
<excludename="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
<excludename="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
<excludename="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<excludename="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
<excludename="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
<excludename="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.NonFullyQualifiedClassName"/>
<excludename="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants"/>
<excludename="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
<excludename="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
</rule>
<ruleref="Squiz.PHP.InnerFunctions.NotAllowed">
<exclude-pattern>tests/TestCase.php</exclude-pattern>
<exclude-pattern>tests/PHPStan/Analyser/NodeScopeResolverTest.php</exclude-pattern>
</rule>
<ruleref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
<properties>
<propertyname="caseSensitive"value="false"/>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<propertyname="newlinesCountBetweenOpenTagAndDeclare"value="0"/>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
<properties>
<propertyname="usefulAnnotations"type="array"value="
@dataProvider,
@requires
"/>
<propertyname="enableNullableTypeHints"type="false" />
<propertyname="enableVoidTypeHint"type="false" />
</properties>
</rule>
<ruleref="Generic.Strings.UnnecessaryStringConcat.Found">
<exclude-pattern>tests/PHPStan/Analyser/NodeScopeResolverTest.php</exclude-pattern>
</rule>
</ruleset>