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

Fix #1043 UtilityClassWithPublicConstructor #1049

Merged
merged 8 commits into from
Aug 31, 2018
Merged

Fix #1043 UtilityClassWithPublicConstructor #1049

merged 8 commits into from
Aug 31, 2018

Conversation

schalkms
Copy link
Member

reference #1043

The rule shouldn't flag classes which implement a interface or inherit
from a class.
The rule shouldn't flag classes if the secondary constructor has
parameters.
* Fixed #1043 - Detekt reports classes with only constructors as utility
  classes
* Classes with empty body should not be flagged by this rule
* Classes with only secondary constructors and no companion object are
  no utility class candidate
A utility class should not be marked as open, since it a subclass
inherit from it.
@arturbosch arturbosch merged commit d0f9aa3 into detekt:master Aug 31, 2018
@schalkms schalkms deleted the fix-#1043-UtilityClassWithPublicConstructor branch September 3, 2018 18:31
@arturbosch arturbosch added this to the RC9 milestone Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants