Subversion Repositories web.kimai2

Rev

Blame | Last modification | View Log | Download

parameters:
  polluteScopeWithLoopInitialAssignments: false
  polluteScopeWithAlwaysIterableForeach: false
  checkAlwaysTrueCheckTypeFunctionCall: true
  checkAlwaysTrueInstanceof: true
  checkAlwaysTrueStrictComparison: true
  checkAlwaysTrueLooseComparison: true
  checkDynamicProperties: %featureToggles.bleedingEdge%
  checkExplicitMixedMissingReturn: true
  checkFunctionNameCase: true
  checkInternalClassCaseSensitivity: true
  reportMaybesInMethodSignatures: true
  reportStaticMethodSignatures: true
  reportMaybesInPropertyPhpDocTypes: true
  reportWrongPhpDocTypeInVarTag: %featureToggles.bleedingEdge%
  featureToggles:
    illegalConstructorMethodCall: %featureToggles.bleedingEdge%
  strictRules:
    allRules: true
    disallowedLooseComparison: [%strictRules.allRules%, %featureToggles.bleedingEdge%]
    booleansInConditions: %strictRules.allRules%
    uselessCast: %strictRules.allRules%
    requireParentConstructorCall: %strictRules.allRules%
    disallowedConstructs: %strictRules.allRules%
    overwriteVariablesWithLoop: %strictRules.allRules%
    closureUsesThis: %strictRules.allRules%
    matchingInheritedMethodNames: %strictRules.allRules%
    numericOperandsInArithmeticOperators: %strictRules.allRules%
    strictCalls: %strictRules.allRules%
    switchConditionsMatchingType: %strictRules.allRules%
    noVariableVariables: %strictRules.allRules%

parametersSchema:
  strictRules: structure([
    allRules: anyOf(bool(), arrayOf(bool())),
    disallowedLooseComparison: anyOf(bool(), arrayOf(bool())),
    booleansInConditions: anyOf(bool(), arrayOf(bool()))
    uselessCast: anyOf(bool(), arrayOf(bool()))
    requireParentConstructorCall: anyOf(bool(), arrayOf(bool()))
    disallowedConstructs: anyOf(bool(), arrayOf(bool()))
    overwriteVariablesWithLoop: anyOf(bool(), arrayOf(bool()))
    closureUsesThis: anyOf(bool(), arrayOf(bool()))
    matchingInheritedMethodNames: anyOf(bool(), arrayOf(bool()))
    numericOperandsInArithmeticOperators: anyOf(bool(), arrayOf(bool()))
    strictCalls: anyOf(bool(), arrayOf(bool()))
    switchConditionsMatchingType: anyOf(bool(), arrayOf(bool()))
    noVariableVariables: anyOf(bool(), arrayOf(bool()))
  ])

conditionalTags:
  PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule:
    phpstan.rules.rule: %strictRules.disallowedLooseComparison%
  PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule:
    phpstan.rules.rule: %strictRules.booleansInConditions%
  PHPStan\Rules\Cast\UselessCastRule:
    phpstan.rules.rule: %strictRules.uselessCast%
  PHPStan\Rules\Classes\RequireParentConstructCallRule:
    phpstan.rules.rule: %strictRules.requireParentConstructorCall%
  PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule:
    phpstan.rules.rule: %strictRules.disallowedConstructs%
  PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule:
    phpstan.rules.rule: %strictRules.disallowedConstructs%
  PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule:
    phpstan.rules.rule: %strictRules.disallowedConstructs%
  PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule:
    phpstan.rules.rule: %strictRules.disallowedConstructs%
  PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule:
    phpstan.rules.rule: %strictRules.overwriteVariablesWithLoop%
  PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule:
    phpstan.rules.rule: %strictRules.overwriteVariablesWithLoop%
  PHPStan\Rules\Functions\ClosureUsesThisRule:
    phpstan.rules.rule: %strictRules.closureUsesThis%
  PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule:
    phpstan.rules.rule: %strictRules.matchingInheritedMethodNames%
  PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticModuloRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule:
    phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
  PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule:
    phpstan.rules.rule: %strictRules.strictCalls%
  PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule:
    phpstan.rules.rule: %strictRules.strictCalls%
  PHPStan\Rules\StrictCalls\StrictFunctionCallsRule:
    phpstan.rules.rule: %strictRules.strictCalls%
  PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule:
    phpstan.rules.rule: %strictRules.switchConditionsMatchingType%
  PHPStan\Rules\VariableVariables\VariableMethodCallRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariableMethodCallableRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariableStaticMethodCallRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariableStaticMethodCallableRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariableVariablesRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%
  PHPStan\Rules\VariableVariables\VariablePropertyFetchRule:
    phpstan.rules.rule: %strictRules.noVariableVariables%

services:
  -
    class: PHPStan\Rules\BooleansInConditions\BooleanRuleHelper

  -
    class: PHPStan\Rules\Operators\OperatorRuleHelper

  -
    class: PHPStan\Rules\VariableVariables\VariablePropertyFetchRule
    arguments:
      universalObjectCratesClasses: %universalObjectCratesClasses%

  -
    class: PHPStan\Rules\DisallowedConstructs\DisallowedLooseComparisonRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanNotRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInElseIfConditionRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInIfConditionRule

  -
    class: PHPStan\Rules\BooleansInConditions\BooleanInTernaryOperatorRule

  -
    class: PHPStan\Rules\Cast\UselessCastRule
    arguments:
      treatPhpDocTypesAsCertain: %treatPhpDocTypesAsCertain%

  -
    class: PHPStan\Rules\Classes\RequireParentConstructCallRule

  -
    class: PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule

  -
    class: PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule

  -
    class: PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule

  -
    class: PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule

  -
    class: PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule

  -
    class: PHPStan\Rules\ForLoop\OverwriteVariablesWithForLoopInitRule

  -
    class: PHPStan\Rules\Functions\ClosureUsesThisRule

  -
    class: PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule

  -
    class: PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule

  -
    class: PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule

  -
    class: PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule

  -
    class: PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
    arguments:
      bleedingEdge: %featureToggles.bleedingEdge%

  -
    class: PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule

  -
    class: PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule

  -
    class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule

  -
    class: PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule

  -
    class: PHPStan\Rules\VariableVariables\VariableMethodCallRule

  -
    class: PHPStan\Rules\VariableVariables\VariableMethodCallableRule

  -
    class: PHPStan\Rules\VariableVariables\VariableStaticMethodCallRule

  -
    class: PHPStan\Rules\VariableVariables\VariableStaticMethodCallableRule

  -
    class: PHPStan\Rules\VariableVariables\VariableStaticPropertyFetchRule

  -
    class: PHPStan\Rules\VariableVariables\VariableVariablesRule