Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix rubocop build
  • Loading branch information
kddnewton committed Jul 14, 2023
commit 9e8a2c3db7f6bb4f862c3c87c8d77198db613589
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AllCops:
SuggestExtensions: false
TargetRubyVersion: 2.7
Exclude:
- '{.git,.github,bin,coverage,pkg,sorbet,spec,test/fixtures,vendor,tmp}/**/*'
- '{.git,.github,.ruby-lsp,bin,coverage,doc,pkg,sorbet,spec,test/fixtures,vendor,tmp}/**/*'
- test.rb

Gemspec/DevelopmentDependencies:
Expand Down Expand Up @@ -154,6 +154,9 @@ Style/ParallelAssignment:
Style/PerlBackrefs:
Enabled: false

Style/RedundantArrayConstructor:
Enabled: false

Style/SafeNavigation:
Enabled: false

Expand Down
14 changes: 9 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,30 @@ GEM
ast (2.4.2)
docile (1.4.0)
json (2.6.3)
language_server-protocol (3.17.0.3)
minitest (5.18.1)
parallel (1.23.0)
parser (3.2.2.1)
parser (3.2.2.3)
ast (~> 2.4.1)
racc
prettier_print (1.2.1)
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.8.0)
regexp_parser (2.8.1)
rexml (3.2.5)
rubocop (1.51.0)
rubocop (1.54.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.0.0)
parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.1)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/syntax_tree/reflection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def inspect

class << self
def parse(comment)
comment = comment.gsub(/\n/, " ")
comment = comment.gsub("\n", " ")

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