GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Rule to enforce class naming · Issue #230 · phpstan/phpstan-phpunit

Rule to enforce class naming #230

New issue
Copy link
New issue
Copy link
Open
Open
Rule to enforce class naming#230
Copy link

Description

@aivchen
aivchen
opened on May 16, 2025
Issue body actions

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
    ondrejmirtes
    on May 16, 2025
    Member
    More actions

    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
    aivchen
    on May 16, 2025
    Author
    More actions

    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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.