├── README.md ├── composer.json ├── composer.lock ├── rules.neon └── src ├── Rule ├── AllowComparingOnlyComparableTypesRule.php ├── BackedEnumGenericsRule.php ├── ClassSuffixNamingRule.php ├── EnforceClosureParamNativeTypehintRule.php ├── EnforceEnumMatchRule.php ├── EnforceIteratorToArrayPreserveKeysRule.php ├── EnforceListReturnRule.php ├── EnforceNativeReturnTypehintRule.php ├── EnforceReadonlyPublicPropertyRule.php ├── ForbidArithmeticOperationOnNonNumberRule.php ├── ForbidCastRule.php ├── ForbidCheckedExceptionInCallableRule.php ├── ForbidCheckedExceptionInYieldingMethodRule.php ├── ForbidCustomFunctionsRule.php ├── ForbidEnumInFunctionArgumentsRule.php ├── ForbidFetchOnMixedRule.php ├── ForbidIdenticalClassComparisonRule.php ├── ForbidIncrementDecrementOnNonIntegerRule.php ├── ForbidMatchDefaultArmForEnumsRule.php ├── ForbidMethodCallOnMixedRule.php ├── ForbidNotNormalizedTypeRule.php ├── ForbidNullInAssignOperationsRule.php ├── ForbidNullInBinaryOperationsRule.php ├── ForbidNullInInterpolatedStringRule.php ├── ForbidPhpDocNullabilityMismatchWithNativeTypehintRule.php ├── ForbidProtectedEnumMethodRule.php ├── ForbidReturnInConstructorRule.php ├── ForbidReturnValueInYieldingMethodRule.php ├── ForbidUnsafeArrayKeyRule.php ├── ForbidUnsetClassFieldRule.php ├── ForbidUnusedClosureParametersRule.php ├── ForbidUnusedExceptionRule.php ├── ForbidUnusedMatchResultRule.php ├── ForbidUselessNullableReturnRule.php ├── ForbidVariableTypeOverwritingRule.php ├── RequirePreviousExceptionPassRule.php └── UselessPrivatePropertyDefaultValueRule.php └── Visitor ├── ShipMonkNodeVisitor.php ├── TopLevelConstructorPropertyFetchMarkingVisitor.php ├── UnusedExceptionVisitor.php └── UnusedMatchVisitor.php /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/composer.lock -------------------------------------------------------------------------------- /rules.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/rules.neon -------------------------------------------------------------------------------- /src/Rule/AllowComparingOnlyComparableTypesRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/AllowComparingOnlyComparableTypesRule.php -------------------------------------------------------------------------------- /src/Rule/BackedEnumGenericsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/BackedEnumGenericsRule.php -------------------------------------------------------------------------------- /src/Rule/ClassSuffixNamingRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ClassSuffixNamingRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceClosureParamNativeTypehintRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceClosureParamNativeTypehintRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceEnumMatchRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceEnumMatchRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceIteratorToArrayPreserveKeysRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceIteratorToArrayPreserveKeysRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceListReturnRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceListReturnRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceNativeReturnTypehintRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceNativeReturnTypehintRule.php -------------------------------------------------------------------------------- /src/Rule/EnforceReadonlyPublicPropertyRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/EnforceReadonlyPublicPropertyRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidArithmeticOperationOnNonNumberRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidArithmeticOperationOnNonNumberRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidCastRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidCastRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidCheckedExceptionInCallableRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidCheckedExceptionInCallableRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidCheckedExceptionInYieldingMethodRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidCheckedExceptionInYieldingMethodRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidCustomFunctionsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidCustomFunctionsRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidEnumInFunctionArgumentsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidEnumInFunctionArgumentsRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidFetchOnMixedRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidFetchOnMixedRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidIdenticalClassComparisonRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidIdenticalClassComparisonRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidIncrementDecrementOnNonIntegerRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidIncrementDecrementOnNonIntegerRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidMatchDefaultArmForEnumsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidMatchDefaultArmForEnumsRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidMethodCallOnMixedRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidMethodCallOnMixedRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidNotNormalizedTypeRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidNotNormalizedTypeRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidNullInAssignOperationsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidNullInAssignOperationsRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidNullInBinaryOperationsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidNullInBinaryOperationsRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidNullInInterpolatedStringRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidNullInInterpolatedStringRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidPhpDocNullabilityMismatchWithNativeTypehintRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidPhpDocNullabilityMismatchWithNativeTypehintRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidProtectedEnumMethodRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidProtectedEnumMethodRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidReturnInConstructorRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidReturnInConstructorRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidReturnValueInYieldingMethodRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidReturnValueInYieldingMethodRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUnsafeArrayKeyRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUnsafeArrayKeyRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUnsetClassFieldRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUnsetClassFieldRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUnusedClosureParametersRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUnusedClosureParametersRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUnusedExceptionRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUnusedExceptionRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUnusedMatchResultRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUnusedMatchResultRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidUselessNullableReturnRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidUselessNullableReturnRule.php -------------------------------------------------------------------------------- /src/Rule/ForbidVariableTypeOverwritingRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/ForbidVariableTypeOverwritingRule.php -------------------------------------------------------------------------------- /src/Rule/RequirePreviousExceptionPassRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/RequirePreviousExceptionPassRule.php -------------------------------------------------------------------------------- /src/Rule/UselessPrivatePropertyDefaultValueRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Rule/UselessPrivatePropertyDefaultValueRule.php -------------------------------------------------------------------------------- /src/Visitor/ShipMonkNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Visitor/ShipMonkNodeVisitor.php -------------------------------------------------------------------------------- /src/Visitor/TopLevelConstructorPropertyFetchMarkingVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Visitor/TopLevelConstructorPropertyFetchMarkingVisitor.php -------------------------------------------------------------------------------- /src/Visitor/UnusedExceptionVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Visitor/UnusedExceptionVisitor.php -------------------------------------------------------------------------------- /src/Visitor/UnusedMatchVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shipmonk-rnd/phpstan-rules/HEAD/src/Visitor/UnusedMatchVisitor.php --------------------------------------------------------------------------------