[ANN] SamePlugin 1.0 released

This plugin is created in order to ease detecting duplications in source
code.

It is available at http://www.intellij.org/twiki/bin/view/Main/SamePlugin.

It is based on open source tools for finding duplications same
<http://www.sf.net/projects/same> by Marnix Klooster
(marnix@users.sourceforge.net).

Usage - select "Find Duplications" under "Code inspection".
After some time the pane with tabs "Statistics", "Tree of matches" and
"Table of matches" will appear.
In tree of matches you can browse files, that has duplications,
Table of matches provides alternative view, describing characteristics
of duplications - length, frequency and maximum possible gain from
removing a duplication. You can perform sorting by this characteristics,
from popup menu on header of table.

In order to run plugin on bigger projects, it is recommended to increase
memory from default idea settings.

Enjoy.

Sergey Yevtushenko

6 comments
Comment actions Permalink

"Sergey Yevtushenko" <sergey@intellektik.informatik.tu-darmstadt.de> wrote
in message news:b35i3j$tm2$1@is.intellij.net...

This plugin is created in order to ease detecting duplications in source
code.

>

It is available at http://www.intellij.org/twiki/bin/view/Main/SamePlugin.

>

It is based on open source tools for finding duplications same
<http://www.sf.net/projects/same> by Marnix Klooster
(marnix@users.sourceforge.net).

>

Usage - select "Find Duplications" under "Code inspection".


I assume you mean that there should be a checkbox in the "Inspect Code"
window that comes up when I choose "Inspect Code..." from the "Tools" menu?

I just want to make sure because I don't get such a checkbox, and when I run
the inspection, the "Duplications" tool window tab stays inactive.

Is there anything else I need to do? Has anyone else gotten it to work on
Win2K with build 695?


0
Comment actions Permalink

I installed the plugin but I can't figure
how to use it.

You say "Find Duplications" under "Code inspection",
where is this?

There is "Tools" / "Inspect Code...", but there is no
"Find Duplications" there.

There are no errors in the IDEA log file, so the plugin
must be loaded.

Thanks,
Marius


Sergey Yevtushenko wrote:

This plugin is created in order to ease detecting duplications in source
code.

It is available at http://www.intellij.org/twiki/bin/view/Main/SamePlugin.

It is based on open source tools for finding duplications same
<http://www.sf.net/projects/same> by Marnix Klooster
(marnix@users.sourceforge.net).

Usage - select "Find Duplications" under "Code inspection".
After some time the pane with tabs "Statistics", "Tree of matches" and
"Table of matches" will appear.
In tree of matches you can browse files, that has duplications,
Table of matches provides alternative view, describing characteristics
of duplications - length, frequency and maximum possible gain from
removing a duplication. You can perform sorting by this characteristics,
from popup menu on header of table.

In order to run plugin on bigger projects, it is recommended to increase
memory from default idea settings.

Enjoy.

Sergey Yevtushenko


0
Comment actions Permalink

Try right-clicking on a package in the project pane. You'll find a "Find
duplication" menu entry in the pop-up menu, right after the "Inspect
Code..." one.

I think that's what he meant by "select Find Duplications under Code
inspection". :)


HTH,
Andrei

"Erik Hanson" <ehanson@comsys.com> wrote in message
news:b35s4u$ikh$1@is.intellij.net...

"Sergey Yevtushenko" <sergey@intellektik.informatik.tu-darmstadt.de> wrote
in message news:b35i3j$tm2$1@is.intellij.net...

This plugin is created in order to ease detecting duplications in source
code.

>

It is available at

http://www.intellij.org/twiki/bin/view/Main/SamePlugin.

>

It is based on open source tools for finding duplications same
<http://www.sf.net/projects/same> by Marnix Klooster
(marnix@users.sourceforge.net).

>

Usage - select "Find Duplications" under "Code inspection".

>

I assume you mean that there should be a checkbox in the "Inspect Code"
window that comes up when I choose "Inspect Code..." from the "Tools"

menu?
>

I just want to make sure because I don't get such a checkbox, and when I

run

the inspection, the "Duplications" tool window tab stays inactive.

>

Is there anything else I need to do? Has anyone else gotten it to work on
Win2K with build 695?

>
>


0
Comment actions Permalink

Hi,

First of all - COOL plugin. This I will use a lot in the future. Not on my
own code offcourse ;)

But I have some very big classes that takes such a long time that I have
still not seen the result page before stopping the Idea process.

The class sizes is in between 100k - 300k and there are about 7-9 files. Its
not a big problem because it is autogenerated files and I don't want to
check for dublicated files but it could be cool with some kind of exclude
filter.

regards
Anders

Sergey Yevtushenko wrote:

This plugin is created in order to ease detecting duplications in
source code.

>

It is available at
http://www.intellij.org/twiki/bin/view/Main/SamePlugin.

>

It is based on open source tools for finding duplications same
<http://www.sf.net/projects/same> by Marnix Klooster
(marnix@users.sourceforge.net).

>

Usage - select "Find Duplications" under "Code inspection".
After some time the pane with tabs "Statistics", "Tree of matches" and
"Table of matches" will appear.
In tree of matches you can browse files, that has duplications,
Table of matches provides alternative view, describing characteristics
of duplications - length, frequency and maximum possible gain from
removing a duplication. You can perform sorting by this
characteristics, from popup menu on header of table.

>

In order to run plugin on bigger projects, it is recommended to
increase memory from default idea settings.

>

Enjoy.

>

Sergey Yevtushenko



0
Comment actions Permalink

Anders Holmbech Nielsen wrote:

Hi,

First of all - COOL plugin. This I will use a lot in the future. Not on my
own code offcourse ;)

But I have some very big classes that takes such a long time that I have
still not seen the result page before stopping the Idea process.

The class sizes is in between 100k - 300k and there are about 7-9 files. Its
not a big problem because it is autogenerated files and I don't want to
check for dublicated files but it could be cool with some kind of exclude
filter.

regards
Anders

Will be ability to specify directories, all file from which to exclude,
enough for beginning?

Sergey


0
Comment actions Permalink

Hi,

Will be ability to specify directories, all file from which to
exclude, enough for beginning?

>

That will for a start - no problem. But it would be nice with a expression
like ant's

exclude com/product/*a_package_i_dont_want/*

Regards Anders

0

Please sign in to leave a comment.