Part-DB.Part-DB-server/phpstan.dist.neon

64 lines
2 KiB
Text
Raw Permalink Normal View History

2020-02-01 17:00:03 +01:00
parameters:
2023-06-13 19:01:19 +02:00
level: 5
paths:
- src
2023-06-13 19:06:50 +02:00
# - tests
2023-06-13 19:01:19 +02:00
2023-06-13 19:06:50 +02:00
excludePaths:
2023-06-13 19:01:19 +02:00
- src/DataTables/Adapter/*
- src/Configuration/*
- src/Doctrine/Purger/*
- src/DataTables/Adapters/TwoStepORMAdapter.php
- src/Form/Fixes/*
- src/Translation/Fixes/*
2023-06-13 19:01:19 +02:00
2020-02-01 17:00:03 +01:00
inferPrivatePropertyTypeFromConstructor: true
2020-02-01 19:42:28 +01:00
treatPhpDocTypesAsCertain: false
2020-02-01 17:00:03 +01:00
symfony:
2024-12-28 15:12:18 +01:00
containerXmlPath: '%rootDir%/../../../var/cache/dev/App_KernelDevDebugContainer.xml'
2023-06-14 23:14:49 +02:00
2023-08-28 22:39:29 +02:00
doctrine:
objectManagerLoader: tests/object-manager.php
allowNullablePropertyForRequiredField: true
2023-06-14 23:14:49 +02:00
checkUninitializedProperties: true
checkFunctionNameCase: false
2023-06-18 00:00:58 +02:00
reportMaybesInPropertyPhpDocTypes: false
reportMaybesInMethodSignatures: false
2023-06-14 23:14:49 +02:00
strictRules:
disallowedLooseComparison: false
booleansInConditions: false
uselessCast: false
requireParentConstructorCall: true
2023-06-18 00:00:58 +02:00
overwriteVariablesWithLoop: false
2023-06-14 23:14:49 +02:00
closureUsesThis: false
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
switchConditionsMatchingType: false
2023-06-18 00:28:21 +02:00
noVariableVariables: false
2024-12-28 15:12:18 +01:00
disallowedEmpty: false
disallowedShortTernary: false
2023-06-18 00:28:21 +02:00
ignoreErrors:
# Ignore errors caused by complex mapping with AbstractStructuralDBElement
- '#AbstractStructuralDBElement does not have a field named \$parent#'
2023-08-28 22:39:29 +02:00
#- '#AbstractStructuralDBElement does not have a field named \$name#'
2023-06-18 00:28:21 +02:00
# Ignore errors related to the use of the ParametersTrait in Part entity
- '#expects .*PartParameter, .*AbstractParameter given.#'
2023-08-28 22:39:29 +02:00
- '#Part::getParameters\(\) should return .*AbstractParameter#'
# Ignore doctrine type mapping mismatch
- '#Property .* type mapping mismatch: property can contain .* but database expects .*#'
# Ignore error of unused WithPermPresetsTrait, as it is used in the migrations which are not analyzed by Phpstan
- '#Trait App\\Migration\\WithPermPresetsTrait is used zero times and is not analysed#'