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

Make UtilityFunction configurable for non-public methods. #698

Merged

Conversation

troessner
Copy link
Owner

Related to #681

CC'ing @isaiah @nTraum @lipanski @hwo411 @RaVbaker @tomash

After this is merged we should release 3.4. as well.

@troessner troessner force-pushed the make-utility-function-configurable-for-non-public-methods branch from 5554332 to 6e107a4 Compare September 11, 2015 21:55
@@ -53,11 +56,13 @@ def contexts # :nodoc:
# @return [Array<SmellWarning>]
#
# :reek:FeatureEnvy
# :reek:TooManyStatements: { max_statements: 6 }
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of sucks, but refactoring UtilityFunction is out of the scope for this PR and I'd rather address this separately.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addendum: After thinking about it I came to the conclusion that the number of statements is not a smell here but indeed justified.

I'd leave it exactly the way it is since it is super readable.

@troessner troessner force-pushed the make-utility-function-configurable-for-non-public-methods branch from 6e107a4 to 9dd4736 Compare September 15, 2015 18:04
mvz added a commit that referenced this pull request Sep 16, 2015
…able-for-non-public-methods

Make UtilityFunction configurable for non-public methods.
@mvz mvz merged commit 9000bd1 into master Sep 16, 2015
@mvz mvz deleted the make-utility-function-configurable-for-non-public-methods branch September 16, 2015 07:15
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.

2 participants