DaGhostman / ts-php-inspections

An inspecion tool for PHP written in TS
MIT License
6 stars 2 forks source link

Granulate inspections #4

Open DaGhostman opened 7 years ago

DaGhostman commented 7 years ago

As of now, there are a few inspection classes that actually do too much. A good example is the one that performs condition checks, since it:

And other such inspections, IMO it will benefit greatly if the code is organized in such way that every inspections is in its own class and said class does as less things as possible.

DaGhostman commented 7 years ago

Also I think it will benefit #2 greatly as inspections can be filtered to fit the needs/preferences of many projects/developers as possible