Open Issues Need Help
View All on GitHubAI Summary: Implement a new PHPStan rule, `LongClassName` (or potentially separate rules for classes, interfaces, traits, and enums), that checks for excessively long class, interface, trait, and enum names. The rule should be configurable to specify a maximum length, and allow for the subtraction of prefixes and suffixes from the name length before the check.
AI Summary: Optimize the performance of the `ShortVariableRule` in the PHPStan extension "Messed Up PHPStan". The current implementation, using `PhpParser\Node` as the node type, is inefficient. The task involves investigating alternative approaches, such as creating separate rules for different variable types (local, for loop, foreach loop, catch block) or utilizing custom visitors to improve performance. This may involve refactoring the existing rule and potentially changing its configuration options.