Skip to content

Commit

Permalink
Simplify shipmonk phpstan rules config
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Sep 12, 2023
1 parent 0519345 commit 3df4534
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions tests/PHPStan/shipmonk.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,20 @@ parameters:
enabled: false
allowNamedArgumentOnlyInAttributes:
enabled: false
backedEnumGenerics:
enabled: true
enforceReadonlyPublicProperty:
enabled: false
forbidAssignmentNotMatchingVarDoc:
enabled: true
forbidCustomFunctions:
enabled: false
list: []
forbidEnumInFunctionArguments:
enabled: true
forbidFetchOnMixed:
enabled: true
forbidMatchDefaultArmForEnums:
enabled: true
forbidMethodCallOnMixed:
enabled: true
forbidNullInAssignOperations:
enabled: true
blacklist: ['??=']
forbidNullInBinaryOperations:
enabled: true
blacklist: [
'**', '!=', '==', '+', 'and', 'or', '&&', '||', '%', '-', '/', '*', # checked by phpstan-strict-rules
'>', '>=', '<', '<=', '<=>', # allow comparisons
'===', '!==', '??' # valid
]
forbidVariableTypeOverwriting:
enabled: true
forbidUnsetClassField:
enabled: true
forbidNullInInterpolatedString:
enabled: false
forbidUselessNullableReturn:
enabled: false
forbidUnusedException:
enabled: true
forbidUnusedMatchResult:
enabled: true
requirePreviousExceptionPass:
enabled: true
reportEvenIfExceptionIsNotAcceptableByRethrownOne: false
uselessPrivatePropertyDefaultValue:
enabled: true
uselessPrivatePropertyNullability:
enabled: true

0 comments on commit 3df4534

Please sign in to comment.