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

Add max_allowed calls to FeatureEnvy smell detector #1744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JuanVqz
Copy link
Contributor

@JuanVqz JuanVqz commented Oct 16, 2023

This is adding a configuration max_calls key for the FeatureEnvy smell detector

Fixes #1535

I know @mvz is assigned to the issue, sorry in advance for having worked on it, just wanted to learn more about Reek.

@JuanVqz JuanVqz force-pushed the add_max_allowed_calls_feature_envy_smell branch from da50b56 to 6750ddc Compare October 16, 2023 22:37
Copy link
Owner

@troessner troessner left a comment

Choose a reason for hiding this comment

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

Love it! The only thing missing is a test ;)
Then we should be good to go!

@JuanVqz JuanVqz force-pushed the add_max_allowed_calls_feature_envy_smell branch from 6750ddc to f5ee59c Compare October 19, 2023 23:29
@JuanVqz
Copy link
Contributor Author

JuanVqz commented Oct 19, 2023

Love it! The only thing missing is a test ;) Then we should be good to go!

I'm glad this is gonna be accepted. :)
just added some tests ⌨️

Shall we update any changelog file or something to mention we are adding the max_calls key?

Copy link
Collaborator

@mvz mvz left a comment

Choose a reason for hiding this comment

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

Some small nits ...

docs/Feature-Envy.md Outdated Show resolved Hide resolved
spec/reek/smell_detectors/feature_envy_spec.rb Outdated Show resolved Hide resolved
This is adding a configuration `max_calls` key for the FeatureEnvy smell detector

Fixes troessner#1535
@JuanVqz JuanVqz force-pushed the add_max_allowed_calls_feature_envy_smell branch from f5ee59c to e8a8615 Compare October 23, 2023 21:09
@JuanVqz JuanVqz requested a review from mvz October 23, 2023 21:09
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.

FeatureEnvy and small methods
3 participants