@@ -16,11 +16,11 @@ includes:
1616# - vendor/shipmonk/dead-code-detector/rules.neon
1717# - vendor/staabm/phpstan-todo-by/extension.neon
1818
19- - vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
19+ # - vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
2020# - vendor/symplify/phpstan-rules/config/configurable-rules.neon
21- - vendor/symplify/phpstan-rules/config/naming-rules.neon
22- - vendor/symplify/phpstan-rules/config/static-rules.neon
23- # - vendor/symplify/phpstan-rules/config/symplify-rules.neon
21+ # - vendor/symplify/phpstan-rules/config/naming-rules.neon
22+ # - vendor/symplify/phpstan-rules/config/static-rules.neon
23+ - vendor/symplify/phpstan-rules/config/symplify-rules.neon
2424
2525# - vendor/symplify/phpstan-rules/config/doctrine-rules.neon
2626 - vendor/symplify/phpstan-rules/config/phpunit-rules.neon
@@ -38,15 +38,18 @@ services:
3838 pretty: true
3939# errorFormatter.checkstyle:
4040# class: NickSdot\PhpStanPhpStormErrorIdentifiers\CheckstyleErrorFormatterPhpStorm
41- # errorFormatter.llm:
42- # class: NickSdot\PhpStanPhpStormErrorIdentifiers\LlmErrorFormatter
41+ errorFormatter.llm:
42+ class: NickSdot\PhpStanPhpStormErrorIdentifiers\LlmErrorFormatter
4343
4444parameters:
4545 paths:
4646 - src/
47+ scanDirectories:
48+ # - vendor/rector/rector/vendor/symplify/rule-doc-generator-contracts/
4749 scanFiles:
4850 - vendor/composer/InstalledVersions.php
4951 excludePaths:
52+ - src/Support/ComposerScripts.php
5053 - tests/Fixtures/
5154 tmpDir: .build/phpstan/
5255 phpVersion: 80200
@@ -63,6 +66,12 @@ parameters:
6366 allRules: true
6467 booleansInConditions: false
6568 disallowedShortTernary: false
69+ ergebnis:
70+ guanguans:
71+ # exceptionMustImplementNativeThrowable:
72+ # nativeThrowable: Guanguans\MonorepoBuilderWorker\Contract\ThrowableContract
73+ # sidzIgnoreNumericStrings: true
74+ sidzIgnoreMagicNumbers: [0.9, 1, 2, 3, 5, 100, 600, 512, 1024, 1000, 0o755]
6675 cognitive_complexity:
6776 class: 42
6877 function: 8
@@ -83,6 +92,13 @@ parameters:
8392 no_mixed: false
8493 no_mixed_property: true
8594 no_mixed_caller: false
95+ unused_public:
96+ constants: true
97+ properties: true
98+ methods: true
99+ local_methods: true
100+ template_paths:
101+ # - resources/views/
86102 disallowedFunctionCalls:
87103 -
88104 function: 'env()'
@@ -91,23 +107,66 @@ parameters:
91107 function: 'env_explode()'
92108 message: 'use config() instead'
93109 ignoreErrors:
110+ # - identifier: argument.templateType
111+ # - identifier: argument.type
94112# - identifier: arrayFilter.strict
95113# - identifier: assign.propertyType
96114# - identifier: binaryOp.invalid
97115# - identifier: cast.double
98116# - identifier: cast.int
99117# - identifier: cast.string
118+ # - identifier: class.extendsFinalByPhpDoc
119+ # - identifier: disallowed.function
100120# - identifier: empty.notAllowed
101121# - identifier: encapsedStringPart.nonString
122+ # - identifier: ergebnis.final
123+ # - identifier: ergebnis.finalInAbstractClass
124+ # - identifier: ergebnis.noAssignByReference
125+ # - identifier: ergebnis.noConstructorParameterWithDefaultValue
126+ # - identifier: ergebnis.noExtends
127+ # - identifier: ergebnis.noIsset
128+ # - identifier: ergebnis.noNamedArgument
129+ # - identifier: ergebnis.noNullableReturnTypeDeclaration
130+ # - identifier: ergebnis.noParameterPassedByReference
131+ # - identifier: ergebnis.noParameterWithNullableTypeDeclaration
132+ # - identifier: ergebnis.noParameterWithNullDefaultValue
102133# - identifier: foreach.valueOverwrite
134+ # - identifier: guanguans.forbiddenSideEffects
135+ # - identifier: logicalAnd.resultUnused
103136# - identifier: logicalOr.resultUnused
137+ # - identifier: method.childParameterType
138+ # - identifier: method.dynamicName
139+ # - identifier: missingType.generics
140+ # - identifier: missingType.iterableValue
104141# - identifier: new.static
105142# - identifier: offsetAccess.nonOffsetAccessible
143+ # - identifier: offsetAccess.notFound
106144# - identifier: paramOut.type
145+ # - identifier: phpstanApi.class
146+ # - identifier: return.type
107147# - identifier: return.void
148+ # - identifier: shipmonk.binaryOperationWithNull
149+ # - identifier: shipmonk.checkedExceptionInCallable
150+ # - identifier: shipmonk.forbiddenCast
151+ # - identifier: shipmonk.iteratorToArrayWithoutPreserveKeys
152+ # - identifier: shipmonk.nonNormalizedType
153+ # - identifier: shipmonk.variableTypeOverwritten
154+ # - identifier: symplify.explicitInterfaceSuffixName
155+ # - identifier: symplify.explicitTraitSuffixName
156+ # - identifier: symplify.forbiddenArrayMethodCall
157+ # - identifier: symplify.forbiddenExtendOfNonAbstractClass
158+ # - identifier: symplify.forbiddenFuncCall
159+ # - identifier: symplify.forbiddenNode
160+ # - identifier: symplify.forbiddenStaticClassConstFetch
161+ # - identifier: symplify.noArrayMapWithArrayCallable
162+ # - identifier: symplify.noDynamicName
163+ # - identifier: symplify.noGlobalConst
108164# - identifier: symplify.noReference
165+ # - identifier: symplify.noReturnSetterMethod
166+ # - identifier: symplify.requireExceptionNamespace
109167# - identifier: trait.unused
110168# - identifier: typePerfect.noMixedMethodCaller
169+ # - message: '#^Unused Guanguans\\Notify\\Rector\\.*\\.*\:\:__construct$#'
111170
112171 - identifier: argument.templateType
113172 - identifier: argument.type
0 commit comments