Comments (8)
I meet new code bases every month an I need this tool to make sure each file contains only 1 class.
from phpinsights.
Uses nikic/php-parser
from phpinsights.
Could you summarise what this code it's doing? It's not clear for me. 🤔
from phpinsights.
namespace boo;
class dirt {
function foo() {
sleep(1);
}
}
echo "I'm a junior developer";
- it parses the code
- removes interface/class/etc. and everything in it
- if the remaining thing is not a namespace statement it alerts you: "Dirty Class"
from phpinsights.
I see. It's a good Insight
. I will add it!
from phpinsights.
Thank you.
from phpinsights.
There is already an Insight for this.
from phpinsights.
Very well!!
from phpinsights.
Related Issues (20)
- Is there any sniff available for valid variable name when preset is Laravel
- DisallowedShortTernaryOperator suppress doesnt work
- How to add and config a PHP CS Fixer?
- Replace PHP cs fixer to Laravel pint? HOT 2
- Differences between switch and match sentences, impact on Cyclomatic Complexity HOT 5
- Provided files are ignored
- Support Symfony 7 HOT 4
- Add links to details or examples
- Ordered imports verification is incorrect
- Parameter type hint: Unparsable php code
- PHP CodeSniffer alternative HOT 2
- I am getting timeout error. Please guide me solution. HOT 2
- Laravel Lumen Error while running "php artisan insights" HOT 1
- Deprecated creation of dynamic property in SniffLoader
- Can not ignore SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff
- Cannot install on laravel project based on php 8.3.4 | Your requirements could not be resolved to an installable set of packages. HOT 3
- Can't use with PHPUnit 11 HOT 3
- Update sebastian/diff to ^6.0 collision PhpUnit HOT 1
- Disable styling checks
- Run phpinsights, returning a boolean value (true/false) if all checks pass HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpinsights.