Skip to content

Add rubocop with a few basic styling rules - #849

Merged
st0012 merged 2 commits into
masterfrom
apply-basic-styles
Feb 1, 2024
Merged

st0012 merged 2 commits into
masterfrom
apply-basic-styles

Conversation

@st0012

@st0012 st0012 commented Jan 31, 2024

Copy link
Copy Markdown
Member

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

st0012 commented Jan 31, 2024

Copy link
Copy Markdown
Member Author

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

@tompng tompng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@ima1zumi ima1zumi left a comment

Copy link
Copy Markdown
Member

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
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants