-
Notifications
You must be signed in to change notification settings - Fork 290
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
add [haveOnlyPrivateConstructors] #204
add [haveOnlyPrivateConstructors] #204
Conversation
please review @codecholeric |
Thanks for adding this 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice work!
…lFieldsCondition, since in the end it is always some condition on some attributes of a JavaClass having modifiers. Also added GET_MEMBERS, GET_FIELDS, ... to JavaClass.Functions since they were missing. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
* @return A syntax element that can either be used as working rule, or to continue specifying a more complex rule | ||
*/ | ||
@PublicAPI(usage = ACCESS) | ||
ClassesShouldConjunction haveOnlyPrivateConstructors(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would have been much better to expose haveOnlyConstructorsWithModifiers
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're open for PR's 😉
Should be easy to pipe this method to a new haveOnlyConstructorsWithModifiers(..)
method.
Other than that you can of course already test this with the current state, just directly use the predicates / conditions and adjust them...
…ndition add [haveOnlyPrivateConstructors]
No description provided.