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

feat: add Obsession/MethodOrder cop #32

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Conversation

ferranpm
Copy link
Member

What is the goal?

As stated by the Stepdown Rule, code should read from high-level to low-level which is a good practice to make the code more readable and easier to understand.

This PR adds the Obsession/MethodOrder cop to ensure the methods properly read from top to bottom.

Is this a restricting or expanding change?

RESTRICTING change

References

How is it being implemented?

@ferranpm ferranpm changed the title Add Obsession/MethodOrder cop feat: add Obsession/MethodOrder cop Nov 25, 2024
@ferranpm ferranpm marked this pull request as ready for review November 25, 2024 09:45
@ferranpm ferranpm requested a review from a team as a code owner November 25, 2024 09:45
Copy link

@martapower martapower left a comment

Choose a reason for hiding this comment

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

Hi @ferranpm, it looks good to me - as long as your pairs agree too.
Cheers!

@ferranpm ferranpm merged commit e1511bb into master Dec 2, 2024
4 of 5 checks passed
@ferranpm ferranpm deleted the add-rubocop-obsession branch December 2, 2024 12:46
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