-
Notifications
You must be signed in to change notification settings - Fork 279
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
ExcessiveConstantUsage smell #621
Comments
How would you resolve this smell if it occurs? |
For me ExcessiveConstantUsage is similar to TooManyInstanceVariables |
The devil, as usual, is in the detail. How many is too many? 😈 |
How about the same as for TooManyInstanceVariables, so 4? |
I’m not sure how well it’s going to play with your campaign against literals in code. ;) |
YMMD :) |
Cleaning up our issues: Linked this issue in #556 - closing this one. |
Reopening this since we now have a candidate implementation. |
Closing this one with #956 merged. |
I think such a smell would be really helpful.
E.g. code like this:
would reek of this smell. The category for this smell would be "SRP violation" in my mind.
What are your thoughts on this?
The text was updated successfully, but these errors were encountered: