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 standardrb #18

Closed
wants to merge 1 commit into from
Closed

Conversation

joshmenden
Copy link
Contributor

@joshmenden joshmenden commented Oct 31, 2024

I was poking around the repo and thought it might be nice to enforce some code formatting rules for consistency.

I figured standardrb would be a pretty safe place to put something in place without needing to decide on an individual rule configuration. The repo was pretty well compliant, mostly just the respond_to_missing? method that standardrb requires was added as net new code.

Also added a Github Action to check that everything is formatted correctly.

LMK if you have strong feelings against this, or if you'd rather take a different approach. Happy to close the PR or revamp it if you have strong opinions!

@ankane
Copy link
Owner

ankane commented Oct 31, 2024

Hey @joshmenden, thanks for the PR. I don't want to change the formatting or add linting, but it seems like respond_to_missing? should be used instead of overriding respond_to?, so happy to include that change.

@joshmenden
Copy link
Contributor Author

@ankane sure! No problem at all. Here's a new PR with just that isolated update: #19

@joshmenden joshmenden closed this Oct 31, 2024
@joshmenden joshmenden deleted the joshmenden/standardrb branch October 31, 2024 04:43
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