Skip to content

Commit 1cd1833

Browse files
authored
Merge pull request #693 from Shopify/at--rbs-comment
Allow RBS comments without a leading space
2 parents f50082a + d24b56e commit 1cd1833

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Layout/HashAlignment:
110110
Layout/HeredocIndentation:
111111
Enabled: false
112112

113+
<% if rubocop_version >= "1.67" %>
114+
Layout/LeadingCommentSpace:
115+
AllowRBSInlineAnnotation: true
116+
<% end %>
117+
113118
Layout/LineContinuationLeadingSpace:
114119
Enabled: true
115120

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
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)