Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed May 25, 2024
1 parent 00d7453 commit bc15de8
Showing 1 changed file with 5 additions and 47 deletions.
52 changes: 5 additions & 47 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ includes:
- ../../../vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
- ../../../vendor/phpstan/phpstan-strict-rules/rules.neon
- ../../../vendor/symplify/phpstan-rules/config/services/services.neon
# - ../../../vendor/symplify/phpstan-rules/config/array-rules.neon
# - ../../../vendor/symplify/phpstan-rules/config/packages/cognitive-complexity/cognitive-complexity-services.neon
# - ../../../BoolishClassMethodPrefixRule
- ../../../vendor/symplify/phpstan-rules/config/naming-rules.neon
# ../../../ is required because this file is use as base and we want to include all those extra rules

services:
Expand All @@ -28,26 +26,11 @@ services:
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#checknottestsnamespaceoutsidetestsdirectoryrule
class: Symplify\PHPStanRules\Rules\CheckNotTestsNamespaceOutsideTestsDirectoryRule
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#checkrequiredinterfaceincontractnamespacerule
class: Symplify\PHPStanRules\Rules\CheckRequiredInterfaceInContractNamespaceRule
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#checksprintfmatchingtypesrule
class: Symplify\PHPStanRules\Rules\Missing\CheckSprintfMatchingTypesRule
tags:
- phpstan.rules.rule

# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#forbiddencomplexforeachifexprrule
# class: Symplify\PHPStanRules\Rules\Complexity\ForbiddenComplexForeachIfExprRule
# tags:
# - phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#forbiddenfunccallrule
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
tags:
Expand All @@ -68,36 +51,11 @@ services:
# tags:
# - phpstan.rules.rule

# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#NoDuplicatedRegexRule
# class: Symplify\PHPStanRules\Rules\Domain\NoDuplicatedRegexRule
# tags:
# - phpstan.rules.rule

# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#noconstructorintestrule
# class: Symplify\PHPStanRules\Rules\NoConstructorInTestRule
# tags:
# - phpstan.rules.rule

# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#nodefaultexceptionrule
# class: Symplify\PHPStanRules\Rules\NoDefaultExceptionRule
# tags:
# - phpstan.rules.rule

# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#noemptyclassrule
# class: Symplify\PHPStanRules\Rules\NoEmptyClassRule
# tags:
# - phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#noissetonobjectrule
class: Symplify\PHPStanRules\Rules\NoIssetOnObjectRule
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#norightphpunitassertscalarrule
class: Symplify\PHPStanRules\Rules\PHPUnit\NoRightPHPUnitAssertScalarRule
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#prefixabstractclassrule
class: Lycheeorg\PHPStan\Rules\NamingConventions\PrefixAbstractClassRule
tags:
Expand All @@ -113,10 +71,10 @@ services:
tags:
- phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#switchtomatchspotterrule
class: Symplify\PHPStanRules\Rules\Spotter\SwitchToMatchSpotterRule
tags:
- phpstan.rules.rule
# - # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#switchtomatchspotterrule
# class: Symplify\PHPStanRules\Rules\Spotter\SwitchToMatchSpotterRule
# tags:
# - phpstan.rules.rule

- # https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#forbiddenparamtyperemovalrule
class: Symplify\PHPStanRules\Rules\ForbiddenNodeRule
Expand Down

0 comments on commit bc15de8

Please sign in to comment.