-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
Layout/LeadingCommentSpace: | ||
AllowRBSInlineAnnotation: true |
There was a problem hiding this comment.
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:
Layout/LeadingCommentSpace: | |
AllowRBSInlineAnnotation: true | |
<% if rubocop_version >= "1.67" %> | |
Layout/LeadingCommentSpace: | |
AllowRBSInlineAnnotation: true | |
<% end %> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
cc435b9
to
08c39dc
Compare
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
923d120
to
c164bc4
Compare
This automated commit dumps the contents of the full RuboCop config. [dependabot skip]
Allow RBS comments without a leading space
Follow up on Shopify/rubocop-sorbet#282 (comment).