-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Restructure phpstan configuration
This patch simply pulls out the level 2 rules into a separate configuration file which is a copy of the original level 2 configuration file of phpstan with some rules, services and parameters disabled. Also, additional configuration files are put into the Build folder and phpstan.neon has been added to the .gitattributes file. Releases: master Resolves: #90789 Change-Id: Ia3b3c30cfa57227c0607904df38add31f36be0e2 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63802 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Alexander Schnitzler <git@alexanderschnitzler.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Alexander Schnitzler <git@alexanderschnitzler.de>
- Loading branch information
1 parent
2097634
commit 334210e
Showing
4 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
parameters: | ||
checkClassCaseSensitivity: true | ||
# checkThisOnly: false | ||
# checkPhpDocMissingReturn: true | ||
|
||
rules: | ||
- PHPStan\Rules\Cast\EchoRule | ||
- PHPStan\Rules\Cast\InvalidCastRule | ||
- PHPStan\Rules\Cast\InvalidPartOfEncapsedStringRule | ||
- PHPStan\Rules\Cast\PrintRule | ||
- PHPStan\Rules\Functions\IncompatibleDefaultParameterTypeRule | ||
- PHPStan\Rules\Generics\ClassAncestorsRule | ||
- PHPStan\Rules\Generics\ClassTemplateTypeRule | ||
- PHPStan\Rules\Generics\FunctionTemplateTypeRule | ||
- PHPStan\Rules\Generics\FunctionSignatureVarianceRule | ||
- PHPStan\Rules\Generics\InterfaceAncestorsRule | ||
- PHPStan\Rules\Generics\InterfaceTemplateTypeRule | ||
- PHPStan\Rules\Generics\MethodTemplateTypeRule | ||
- PHPStan\Rules\Generics\MethodSignatureVarianceRule | ||
- PHPStan\Rules\Generics\TraitTemplateTypeRule | ||
- PHPStan\Rules\Methods\IncompatibleDefaultParameterTypeRule | ||
- PHPStan\Rules\Operators\InvalidBinaryOperationRule | ||
# - PHPStan\Rules\Operators\InvalidUnaryOperationRule | ||
- PHPStan\Rules\Operators\InvalidComparisonOperationRule | ||
- PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule | ||
- PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule | ||
- PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule | ||
- PHPStan\Rules\PhpDoc\InvalidPHPStanDocTagRule | ||
- PHPStan\Rules\PhpDoc\InvalidThrowsPhpDocValueRule | ||
- PHPStan\Rules\PhpDoc\WrongVariableNameInVarTagRule | ||
|
||
services: | ||
- | ||
class: PHPStan\Rules\Functions\CallCallablesRule | ||
arguments: | ||
reportMaybes: %reportMaybes% | ||
|
||
tags: | ||
- phpstan.rules.rule | ||
|
||
- | ||
class: PHPStan\Rules\PhpDoc\InvalidPhpDocVarTagTypeRule | ||
arguments: | ||
checkClassCaseSensitivity: %checkClassCaseSensitivity% | ||
checkMissingVarTagTypehint: %checkMissingVarTagTypehint% | ||
|
||
tags: | ||
- phpstan.rules.rule |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters