-
Notifications
You must be signed in to change notification settings - Fork 111
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
PMD's AvoidDuplicateLiterals is not equivalent to original MultipleStringLiteralsCheck #760
Comments
@davvd valid bug |
@mkordas thanks |
@mkordas thank you for the ticket reported, I topped your account for 15 mins, transaction |
@krzyk Can this issue being resolved soon? |
@xupyprmv let's see |
@davvd this is urgent |
@krzyk Great thanks |
@dskalenko this task is for you, keep these principles in mind, and don't hesitate to ask any technical questions; The budget of this issue is 30 mins, which is exactly how much will be paid when the task is done (see this for explanation) |
…al MultipleStringLiteralsCheck
@dskalenko thank you! |
…al MultipleStringLiteralsCheck (fix type)
@mkordas Could you please close the task |
@davvd this is not urgent |
@dskalenko I just added 30 mins to your account, many thanks for your contribution (95742106).. 75 hours and 12 mins spent here; +30 added to your rating, current score is: +90 |
In Qulice 0.16.4
AvoidDuplicateLiterals
took overMultipleStringLiteralsCheck
. However, these checks are not fully equivalent.MultipleStringLiteralsCheck
was by default ignoring duplicates in annotations, see http://checkstyle.sourceforge.net/config_coding.html#MultipleStringLiterals.AvoidDuplicateLiterals
doesn't do that, but it should, as it doesn't make sense to extract strings used in annotations to constants, especially if they are e.g. PMD exclusions.Let's tune
AvoidDuplicateLiterals
to allow duplicates in annotations.The text was updated successfully, but these errors were encountered: