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

[java] UseUtilityClass implementation hardcodes a message instead of using the on defined in the XML #5023

Open
jsotuyod opened this issue May 17, 2024 · 0 comments
Labels
an:enhancement An improvement on existing features / rules

Comments

@jsotuyod
Copy link
Member

The rule implementation hardcodes a message instead of using the on defined in the XML. There are legit uses of this (ie: rules that provide multiple messages with greater detail for particular situations), but this one only produces the one message…

message = "This utility class has a non-private constructor";
asCtx(data).addViolationWithMessage(klass, message);

Originally posted by @jsotuyod in #4761 (reply in thread)

@jsotuyod jsotuyod added the an:enhancement An improvement on existing features / rules label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules
Projects
None yet
Development

No branches or pull requests

1 participant