-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon.dist
54 lines (50 loc) · 2.95 KB
/
phpstan.neon.dist
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
47
48
49
50
51
52
53
54
parametersSchema:
gitattributesExportInclude: listOf(string())
preconditionSystemHash: string()
parameters:
level: max
tmpDir: var/phpstan
paths:
- src
- .gitattributes
treatPhpDocTypesAsCertain: false
ignoreErrors:
-
message: '#Missing @throws Symfony\\Component\\Console\\Exception\\InvalidArgumentException annotation#'
paths:
- src/Console/Command/CleanCommand.php
- src/Console/Command/CommitCommand.php
-
message: '#PHPDoc tag @throws with type [a-zA-Z0-9\\_]+ is not compatible with parent#'
paths:
- src/Console/Application.php
- src/Console/Command/AbstractCommand.php
- src/Console/Command/StageCommand.php
# Custom parameters.
gitattributesExportInclude:
- bin
- composer.json
- config
- LICENSE
- README.md
- src
preconditionSystemHash: f41703e49800bce6744b9116afb30d6a
rules:
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\Methods\ForbiddenConcreteTypeHintRule # Forbids using concrete classes in type hints when an interface is available.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\Methods\SortedRequiredConstructorParametersRule # Requires non-optional constructor parameters to be alphabetized.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\CoverageAnnotationHasNoParenthesesRule # Ensures that coverage annotations have no trailing parentheses.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\PropertyDataTypePutsObjectProphecyLastRule # Requires "@property" data types to put ObjectProphecy last.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\SortedCoversAnnotationsRule # Requires "@covers" annotations to be sorted alphabetically.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\SortedPropertyAnnotationsRule # Requires "@property" annotations to be sorted alphabetically.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\SortedSeeAnnotationsRule # Requires "@see" annotations to be sorted alphabetically.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\SortedThrowsAnnotationsRule # Requires "@throws" annotations to be sorted alphabetically.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\PhpDoc\SortedUsesAnnotationsRule # Requires "@uses" annotations to be sorted alphabetically.
- PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\Properties\SortedPropertiesRule # Requires class properties to be alphabetized within their visibility grouping.
services:
-
# Ensures that a conscious decision is made about whether to include new repository root paths in Git archive files.
class: PhpTuf\ComposerStagerConsole\Tests\PHPStan\Rules\Files\GitattributesMissingExportIgnoreRule
arguments:
gitattributesExportInclude: %gitattributesExportInclude%
tags:
- phpstan.rules.rule