Skip to content
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

Closed
mkordas opened this issue Apr 7, 2016 · 16 comments
Assignees

Comments

@mkordas
Copy link
Contributor

mkordas commented Apr 7, 2016

In Qulice 0.16.4 AvoidDuplicateLiterals took over MultipleStringLiteralsCheck. 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.

@krzyk
Copy link
Collaborator

krzyk commented Apr 7, 2016

@davvd valid bug

@krzyk
Copy link
Collaborator

krzyk commented Apr 7, 2016

@mkordas thanks

@davvd
Copy link

davvd commented Apr 11, 2016

@davvd valid bug

@krzyk I added bug tag to this ticket

@davvd davvd added the bug label Apr 11, 2016
@davvd
Copy link

davvd commented Apr 12, 2016

@mkordas thank you for the ticket reported, I topped your account for 15 mins, transaction 570ca198dd526211c100028f

@xupyprmv
Copy link

@krzyk Can this issue being resolved soon?

@krzyk
Copy link
Collaborator

krzyk commented Jun 25, 2016

@xupyprmv let's see

@krzyk
Copy link
Collaborator

krzyk commented Jun 25, 2016

@davvd this is urgent

@xupyprmv
Copy link

@krzyk Great thanks

@davvd
Copy link

davvd commented Jun 27, 2016

@davvd this is urgent

@krzyk got it, "urgent" label here

@davvd davvd added the urgent label Jun 27, 2016
@davvd
Copy link

davvd commented Aug 1, 2016

@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)

@dskalenko
Copy link
Contributor

@davvd here my PR #792

@davvd
Copy link

davvd commented Aug 3, 2016

@davvd here my PR #792

@dskalenko thank you!

dskalenko added a commit to dskalenko/qulice that referenced this issue Aug 4, 2016
@dskalenko
Copy link
Contributor

@mkordas Could you please close the task

@mkordas mkordas closed this as completed Aug 4, 2016
@krzyk
Copy link
Collaborator

krzyk commented Aug 4, 2016

@davvd this is not urgent

@davvd
Copy link

davvd commented Aug 4, 2016

@davvd this is not urgent

@krzyk OK, I un-labeled it as "urgent" tag

@davvd davvd added urgent and removed urgent labels Aug 4, 2016
@davvd
Copy link

davvd commented Aug 5, 2016

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants