Skip to content

Rule to enforce class naming #230

Open

Description

@aivchen

Continuation of #214

What if we introduce optional path parameter to phpunit.xml in the same manner as containerXmlPath in phpstan/phpstan-symfony package? Then we can analyse suffix option for each directory and check all class names.

Activity

  1. ondrejmirtes commented on May 16, 2025

    @ondrejmirtes
    Member

    Isn't this something that https://github.com/shipmonk-rnd/dead-code-detector could take care of once it can detect unused classes? https://github.com/shipmonk-rnd/dead-code-detector

  2. aivchen commented on May 16, 2025

    @aivchen
    Author

    Well, maybe. We can look at this problem from different angles. We can think that some class is unused. But we also can think that some class has a wrong name.

    Also we can interpret "unused class" in different ways. What if some test class with wrong name referenced by another class? Is it used or not then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions