Skip to content

Commit 81c8abf

Browse files
committed
Add Layout/LeadingCommentSpace config
1 parent b6f3fc3 commit 81c8abf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Layout/HashAlignment:
1313
EnforcedColonStyle: table
1414
EnforcedHashRocketStyle: table
1515

16+
Layout/LeadingCommentSpace:
17+
AllowRBSInlineAnnotation: true
18+
AllowSteepAnnotation: true
19+
1620
Layout/SpaceAroundOperators:
1721
Exclude:
1822
# Suppress line breaks in spec files (e.g `it { should xxxx }`, `its(:method) { should xxxx }` )

lib/ruby_header_parser/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def extract_enum_definitions
9494
stdout = execute_ctags("--c-kinds=e --fields=+n")
9595

9696
# Workaround for Ruby::UnannotatedEmptyCollection on steep 1.9.0+
97-
name_to_definition = {} #: Hash[String, RubyHeaderParser::EnumDefinition] # rubocop:disable Layout/LeadingCommentSpace
97+
name_to_definition = {} #: Hash[String, RubyHeaderParser::EnumDefinition]
9898

9999
name_to_definitions =
100100
stdout.each_line.with_object(name_to_definition) do |line, hash|

0 commit comments

Comments
 (0)