Skip to content

Allow RBS comments without a leading space #693

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

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

Morriar
Copy link
Contributor

@Morriar Morriar commented Feb 19, 2025

@Morriar Morriar self-assigned this Feb 19, 2025
@Morriar Morriar requested a review from a team as a code owner February 19, 2025 19:09
@github-actions github-actions bot added the config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops label Feb 19, 2025
Comment on lines +113 to +115
Layout/LeadingCommentSpace:
AllowRBSInlineAnnotation: true
Copy link
Contributor

@sambostock sambostock Feb 20, 2025

Choose a reason for hiding this comment

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

CI is failing because this config is relatively recent.

To enable this config without bumping the minimum RuboCop version, we can use the same technique as we did to configure new cops:

Suggested change
Layout/LeadingCommentSpace:
AllowRBSInlineAnnotation: true
<% if rubocop_version >= "1.67" %>
Layout/LeadingCommentSpace:
AllowRBSInlineAnnotation: true
<% end %>

Copy link
Contributor

Choose a reason for hiding this comment

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

On the other hand, The Great Reset certainly warrants a major version bump, so we could take the opportunity to bump the minimum RuboCop version.

Thoughts @rafaelfranca?

Copy link
Member

Choose a reason for hiding this comment

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

We can do that later.

@Morriar Morriar force-pushed the at--rbs-comment branch 7 times, most recently from cc435b9 to 08c39dc Compare February 20, 2025 19:30
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
This automated commit dumps the contents of the full RuboCop config.
[dependabot skip]
@rafaelfranca rafaelfranca merged commit 1cd1833 into rm-layout-department Feb 20, 2025
20 checks passed
@rafaelfranca rafaelfranca deleted the at--rbs-comment branch February 20, 2025 19:57
sambostock added a commit that referenced this pull request Feb 21, 2025
This adds a `Reference` for configuration decided in #693.
@sambostock sambostock mentioned this pull request Feb 21, 2025
1 task
rafaelfranca added a commit that referenced this pull request Mar 4, 2025
Allow RBS comments without a leading space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants