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)
- Finder should take into consideration excluded paths HOT 1
- Syntax JsonException issue HOT 7
- Analysis of complexity doesn't highlight files for refactoring
- Getting different reports with and without `--fix` HOT 1
- Space inside working directory's name HOT 3
- laravel livewire issue
- Github actions skips config file HOT 1
- Configure insights (dokumentation)
- Configured excludes are ignored when specifying paths in the command
- 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
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.