Skip to content

Commit 534f669

Browse files
authored
Merge pull request #398 from ruby-syntax-tree/fix-rubocop
Fix rubocop build
2 parents ff67961 + 9e8a2c3 commit 534f669

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.rubocop.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AllCops:
77
SuggestExtensions: false
88
TargetRubyVersion: 2.7
99
Exclude:
10-
- '{.git,.github,bin,coverage,pkg,sorbet,spec,test/fixtures,vendor,tmp}/**/*'
10+
- '{.git,.github,.ruby-lsp,bin,coverage,doc,pkg,sorbet,spec,test/fixtures,vendor,tmp}/**/*'
1111
- test.rb
1212

1313
Gemspec/DevelopmentDependencies:
@@ -154,6 +154,9 @@ Style/ParallelAssignment:
154154
Style/PerlBackrefs:
155155
Enabled: false
156156

157+
Style/RedundantArrayConstructor:
158+
Enabled: false
159+
157160
Style/SafeNavigation:
158161
Enabled: false
159162

Gemfile.lock

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,30 @@ GEM
1010
ast (2.4.2)
1111
docile (1.4.0)
1212
json (2.6.3)
13+
language_server-protocol (3.17.0.3)
1314
minitest (5.18.1)
1415
parallel (1.23.0)
15-
parser (3.2.2.1)
16+
parser (3.2.2.3)
1617
ast (~> 2.4.1)
18+
racc
1719
prettier_print (1.2.1)
20+
racc (1.7.1)
1821
rainbow (3.1.1)
1922
rake (13.0.6)
20-
regexp_parser (2.8.0)
23+
regexp_parser (2.8.1)
2124
rexml (3.2.5)
22-
rubocop (1.51.0)
25+
rubocop (1.54.2)
2326
json (~> 2.3)
27+
language_server-protocol (>= 3.17.0)
2428
parallel (~> 1.10)
25-
parser (>= 3.2.0.0)
29+
parser (>= 3.2.2.3)
2630
rainbow (>= 2.2.2, < 4.0)
2731
regexp_parser (>= 1.8, < 3.0)
2832
rexml (>= 3.2.5, < 4.0)
2933
rubocop-ast (>= 1.28.0, < 2.0)
3034
ruby-progressbar (~> 1.7)
3135
unicode-display_width (>= 2.4.0, < 3.0)
32-
rubocop-ast (1.28.1)
36+
rubocop-ast (1.29.0)
3337
parser (>= 3.2.1.0)
3438
ruby-progressbar (1.13.0)
3539
simplecov (0.22.0)

lib/syntax_tree/reflection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def inspect
6464

6565
class << self
6666
def parse(comment)
67-
comment = comment.gsub(/\n/, " ")
67+
comment = comment.gsub("\n", " ")
6868

6969
unless comment.start_with?("[")
7070
raise "Comment does not start with a bracket: #{comment.inspect}"

0 commit comments

Comments
 (0)