Comments (11)
this tool https://github.com/sebastianbergmann/phpcpd might proof usefull for refactoring files as well
from erfurt.
I've tried using the phpdcd and it throws a bunch of errors, but still gives output (with most likely many false positives). I'm going to check those entries and sort out as many false positives as I can, and afterwards you should recheck the updated list. Any complaints about this @pfrischmuth @white-gecko ? Here is the log for reference: phpcdc.txt
I've searched for more ways to find dead code, this feature seems to be pretty rare. One other thing i found was https://phpmd.org/ sadly it doesn't search for unused functions right now, but we can find unused variables which is already a useful feature
https://github.com/exakat/php-static-analysis-tools lists a lot of more or less useful tools - maybe one of the analysers actually can list dead code as well. I might look into them prior to going through the logfile from phpdcd
from erfurt.
Hi @shinobu, you should exclude the vendor folder in the search, because it only contains foreign software.
from erfurt.
@k00ni iirc I ran it in `library/Erfurt' so the vendor folder was ignored
from erfurt.
@shinobu: according to your phpcdc.txt file you have lines like:
Notice: Undefined index: in /home/shino/git/Erfurt/vendor/sebastian/phpdcd/src/Analyser.php on line 274
According to that line, it checked the vendor folder too (vendor/sebastian).
from erfurt.
The undefined index is in the vendor path because vendor/sebastion/phpdcd
is the program i execute to check the Erfurt Code (as mentioned above) @k00ni
from erfurt.
You are right, thanks for the info, my bad.
from erfurt.
This is the Log of the phpmd (as mentioned above mostly unused variables)
phpmd.txt
from erfurt.
Another thing, as phpdcd versions 1.0.0
1.0.1
1.0.2/stable Composer Package
all have errors, it would be great if you could check if they run on your setups without errors @pfrischmuth @white-gecko (that shouldn't take longer than 5 minutes)
from erfurt.
priorize deleting outcommented code snippets, beware to not delete comments
afterwards go through the phpdcd results
from erfurt.
Commend out code should be done in #140 .
The phpdcd
is complicated to handle and we don't know, if the result brings much.
The next step should be phpcpd
and phpmd
.
from erfurt.
Related Issues (20)
- Unknown user identifier on password recovery
- Query including count() does not work HOT 1
- Deleting triples with large literals HOT 2
- Refactor `is/areModel[s]Allowed()`
- Refactor Versioning
- Add class constants for Erfurt_Store_Exception HOT 1
- Analyze Zend Dependencies and estimate effort to replace/update code
- Automatic Namespace generation causes problems
- [OSx] Apache: Erfut error: Virtuoso adapter requires the ODBC extension to be loaded. HOT 3
- addMultipleStatements() always guesses one chunk first
- SimpleQuery count() as doesn't work
- Turtle parser should support qnames without local part HOT 1
- Query Cache Trouble if Table is Missing
- Test fails because of encoding problem on jenkins server
- SPARQL FILTER regex flags HOT 4
- Use composer for dependency management HOT 1
- Parser fails on filter queries with less operand '<' HOT 3
- Server not responsive when executing date larger filter HOT 2
- Mssql, EfZendDb and Multistore are using plain "COUNT" queries
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 erfurt.