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 rubocop with a few basic styling rules #849

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jan 31, 2024

While I dislike excessive linting warnings/errors we sometimes experience in projects, I think having a tool to enforce some universally agreed styles is beneficial in the long term. So I want to start introducing a few very basic rubocop rules that has been widely followed in this codebase (see .rubocop.yml).

As we gradually adopt more rules, the CI job and our editor (through LSP servers like Ruby LSP) will make them easy to follow and enforce as well.

@st0012 st0012 requested a review from a team January 31, 2024 16:46
@st0012 st0012 self-assigned this Jan 31, 2024
@st0012 st0012 force-pushed the apply-basic-styles branch from 54ada6c to 066894f Compare January 31, 2024 16:47
@st0012
Copy link
Member Author

st0012 commented Jan 31, 2024

Errors are caused by TruffleRuby suites and not related to the changes here.

@st0012 st0012 force-pushed the apply-basic-styles branch from 066894f to 2ff60ad Compare January 31, 2024 18:10
@st0012 st0012 force-pushed the apply-basic-styles branch from 2ff60ad to 51e6665 Compare January 31, 2024 23:44
Copy link
Member

@tompng tompng left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@ima1zumi ima1zumi left a comment

Choose a reason for hiding this comment

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

👍

@st0012 st0012 merged commit 4f60cd8 into master Feb 1, 2024
57 checks passed
@st0012 st0012 deleted the apply-basic-styles branch February 1, 2024 17:45
matzbot pushed a commit to ruby/ruby that referenced this pull request Feb 1, 2024
(ruby/irb#849)

* Use rubocop to enforce a few styling rules

* Add a CI job for linting

ruby/irb@4f60cd88bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants