GitXplorerGitXplorer
T

class-leak

public
107 stars
7 forks
2 issues

Commits

List of commits on branch main.
Unverified
f615f2c13062a790aecd4ca27202df3a7fc9bd53

rebuild patch

TTomasVotruba committed 4 days ago
Unverified
4988af7c1c03a10dd703d868d49e7431269770c8

space

TTomasVotruba committed 4 days ago
Unverified
e922f495a938257e53115eeaa43d4cba3f400757

replace mbstring again

TTomasVotruba committed 4 days ago
Unverified
5440e83d4329a2b979774c092c3233acebc58185

add symfony console patch to keep width/height simple

TTomasVotruba committed 4 days ago
Unverified
ca8bff5dcccd526634177383710fe50ec2a9b92b

bump

TTomasVotruba committed 4 days ago
Verified
07ac1b57668cb1033ebde31616083d98d8687bd9

Merge pull request #61 from staabm/json

TTomasVotruba committed 11 days ago

README

The README file for this repository.

Class Leak

Downloads total

Find leaking classes that you never use... and get rid of them.

Install

composer require tomasvotruba/class-leak --dev

Usage

Pass directories you want to check:

vendor/bin/class-leak check src

Make sure to exclude /tests directories, to keep reporting classes that are used in tests, but never used in the code-base.


Many types are excluded by default, as they're collected by framework magic, e.g. console command classes.


Exclude what you use

Do you want to skip classes of certain type?

vendor/bin/class-leak check src --skip-type="App\\Contract\\SomeInterface"

What if your classes do no implement any type?

vendor/bin/class-leak check src --skip-suffix="Controller"

Do you want to skip classes using a specific attribute?

vendor/bin/class-leak check src --skip-attribute="App\\Attribute\\AsController"

Happy coding!