This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Find duplicate code blocks in project | ||
---|---|---|---|
Product: | php | Reporter: | Vladimir Riha <vriha> |
Component: | Refactoring | Assignee: | Ondrej Brejla <obrejla> |
Status: | NEW --- | ||
Severity: | normal | CC: | chrizzly |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Vladimir Riha
2012-01-06 07:45:37 UTC
I agree with 'vriha'. It is very often that many programmers (specially when working with open source code) do copy and paste of pieces of code. You finish with duplicates all around a single project. Having a plugin which allows to spot them would be of great help. https://github.com/hudayou/fib Here is a tool to find identical code blocks in a file or directory This feature is really needed. There is a plugin called PMD Copy and Paste detector http://plugins.netbeans.org/plugin/1529 but first it is not further developed and second I got the sources from the developer and I'm searching for help (bug fixes, enhancements and so on.) Here is the code: https://github.com/Chris2011/Nb-Pmd-Cpd. Maybe someone can help me with my "fork". Regards Chris What I prefer is a whole new menu entry called analyze, like the source -> inspect menu entry but it should be on first level navigation like source, refactor, run and so on, like in intelliJ. You have a lot of functionality like find duplicates, and so on. |