-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPDBear is too noisy by default for PHP #810
Comments
Thanks for reporting this issue! A coalaian will look at it soon. |
Hi, the problem here is actually that we don't show the context of the lines due to a bug, the duplication is there and if you look into the files you'll likely see the duplication. The bug has been fixed, I'll make a bugfix release soon including this. In the meantime you can install the bears package with |
There certainly is a lot of duplication in this codebase, so it would be lovely if it was reported sanely. I'll try upgrading the bears in the docker; that will be useful for the documentation. |
I'll try to get it into coala/base:0.8 today |
Need to remove the "upstream" label on this ticket? |
Not sure yet. If the "shwing the right source ranges in coala" solves the problem for you then this has been fixed on master and this can be closed. |
Reopen if needed |
Confirmed fixed in master. |
👍 I just did a release with the fix so you'll be able to use coala 0.8.4. I just triggered a rebuild of the docker image. |
@jayvdb btw. we aren't fully sure about the default for the minimum tokens setting, if you have suggestions on how to change it please let us know! |
When using CPDBear (from the docker image) on two PHP projects I have found many of the CPDBear results to be silly, and thus my first instinct was to disable it.
For example, this is the default output.
https://travis-ci.org/jayvdb/clipdig/builds/159077259
Setting
minimum_tokens = 500
in the.coafile
doesnt make the problem disappear.This might be a problem upstream in pmd.
It might be possible to make it less silly with other configuration options.
If not, it might be best to disable it for PHP until it shows meaningful results.
The text was updated successfully, but these errors were encountered: