Skip to content

Commit

Permalink
[cs] remove NoClassInstantiationSniff
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 30, 2019
1 parent 40c4971 commit 7850a0d
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions ecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,6 @@ services:
- 'getNodeTypes'
- 'refactor'

Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
extra_allowed_classes:
- 'PHPStan\Type\*'
- '*Type'
- 'PHPStan\Analyser\Scope'
- 'PhpParser\NodeVisitor\NameResolver'
- 'PhpParser\Node\*'
- '*Data'
- '*Recipe'
- '*ValueObject'
- 'PhpParser\Comment'
- 'PhpParser\Lexer'
- 'PhpParser\Comment\Doc'
- 'PhpParser\NodeTraverser'
- 'Rector\Reporting\FileDiff'
- 'Rector\RectorDefinition\*'
- 'Rector\Application\Error'
- 'Rector\DependencyInjection\Loader\*'
- 'Symplify\PackageBuilder\*'
- 'Symfony\Component\Console\Input\*Input'
- 'PHPStan\Analyser\NameScope'
- 'PHPStan\Rules\RuleErrors\RuleError*'
- '*\XdebugHandler'

Symplify\CodingStandard\Fixer\Naming\PropertyNameMatchingTypeFixer:
extra_skipped_classes:
- 'PhpParser\PrettyPrinter\Standard'
Expand All @@ -71,6 +47,9 @@ parameters:
- 'src/Rector/AbstractRector.php'

skip:
# rather useless
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: ~

PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore: ~
Symplify\CodingStandard\Sniffs\Architecture\DuplicatedClassShortNameSniff: ~
# skip temporary due to missing "import" feature in PhpStorm
Expand Down Expand Up @@ -184,10 +163,6 @@ parameters:
- 'packages/DeadCode/src/Rector/ClassMethod/RemoveOverriddenValuesRector.php'
- 'packages/PhpSpecToPHPUnit/src/Rector/MethodCall/PhpSpecPromisesToPHPUnitAssertRector.php'

Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff:
# 3rd party api
- 'src/PhpParser/Node/Value/ValueResolver.php'

PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer:
- 'packages/BetterPhpDocParser/tests/PhpDocInfo/PhpDocInfo/PhpDocInfoTest.php'
# intentional "assertEquals()"
Expand Down

0 comments on commit 7850a0d

Please sign in to comment.