Skip to content

Commit e9792bb

Browse files
committedMar 4, 2025
Merge pull request #693 from Shopify/at--rbs-comment
Allow RBS comments without a leading space
1 parent be309d4 commit e9792bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎rubocop.yml

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ Layout/FirstMethodArgumentLineBreak:
6565
Layout/HashAlignment:
6666
EnforcedLastArgumentHashStyle: ignore_implicit
6767

68+
<% if rubocop_version >= "1.67" %>
69+
Layout/LeadingCommentSpace:
70+
AllowRBSInlineAnnotation: true
71+
<% end %>
72+
6873
Layout/LineContinuationLeadingSpace:
6974
Enabled: true
7075

‎test/fixtures/full_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ Layout/LeadingCommentSpace:
697697
VersionChanged: '0.73'
698698
AllowDoxygenCommentStyle: false
699699
AllowGemfileRubyComment: false
700-
AllowRBSInlineAnnotation: false
700+
AllowRBSInlineAnnotation: true
701701
AllowSteepAnnotation: false
702702
Layout/LeadingEmptyLines:
703703
Description: Check for unnecessary blank lines at the beginning of a file.

0 commit comments

Comments
 (0)
Failed to load comments.