aaschmid / gradle-cpd-plugin

Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Apache License 2.0
96 stars 12 forks source link

Missing CPD attributes #11

Closed sbonnick closed 9 years ago

sbonnick commented 9 years ago

Hi,

I've noticed this plugin only really supports the "encoding", "format" and "minimumtokencount". Do you have plans to add any additional attributes as defined on cpd-usage page?

Specifically, I am most interested in "ignoreAnnotations" and "ignoreLiterals".

Thanks

aaschmid commented 9 years ago

Hi @sbonnick, yes, I can add these attributes. The only thing is, that I am not really sure if they work properly. May obervations are not very optimistic for these attributes. What are your observations?

Nevertheless, I will make them available asap.

Cheers, Andreas

sbonnick commented 9 years ago

Hi Andreas,

To be honest I haven't used these commands previously. My hope is that I can use these commands to "ignore" matching of licence headers in source code.

-Stewart

On Mon, Apr 13, 2015 at 5:15 AM, Andreas Schmid notifications@github.com wrote:

Hi @sbonnick https://github.com/sbonnick, yes, I can add these attributes. The only thing is, that I am not really sure if they work properly. May obervations are not very optimistic for these attributes. What are your observations?

Nevertheless, I will make them available asap.

Cheers, Andreas

— Reply to this email directly or view it on GitHub https://github.com/aaschmid/gradle-cpd-plugin/issues/11#issuecomment-92285183 .

aaschmid commented 9 years ago

Good news, the parameters are working very well and I have almost finished the implementation on this ;-)

sbonnick commented 9 years ago

Excellent news. I will give it a try once up on maven.

sbonnick commented 9 years ago

Tried with latest 0.4 build, new features work great!

aaschmid commented 9 years ago

Thanks, if you like, i would appreciate your voting on https://bintray.com/aaschmid/gradle-plugins/gradle-cpd-plugin/view :-)