diff --git a/Gemfile.lock b/Gemfile.lock index eca3d08..4dbdc6a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,50 +10,63 @@ PATH GEM remote: https://rubygems.org/ specs: - asciidoctor (2.0.18) + asciidoctor (2.0.22) ast (2.4.2) - diff-lcs (1.5.0) - parallel (1.22.1) - parser (3.1.2.0) + diff-lcs (1.5.1) + json (2.7.2) + language_server-protocol (3.17.0.3) + parallel (1.24.0) + parser (3.3.1.0) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.4.0) - rexml (3.2.5) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) + rake (13.2.1) + regexp_parser (2.9.0) + rexml (3.2.6) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-support (3.11.0) - rubocop (1.29.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) + rubocop (1.63.4) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.17.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.18.0) - parser (>= 3.1.1.0) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.31.3) + parser (>= 3.3.1.0) + rubocop-capybara (2.20.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.25.1) + rubocop (~> 1.41) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-rspec (2.10.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - thor (1.2.1) - unicode-display_width (2.1.0) - webrick (1.7.0) - yard (0.9.28) - webrick (~> 1.7.0) + rubocop-rspec (2.29.1) + rubocop (~> 1.40) + rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) + rubocop-rspec_rails (~> 2.28) + rubocop-rspec_rails (2.28.3) + rubocop (~> 1.40) + ruby-progressbar (1.13.0) + thor (1.3.1) + unicode-display_width (2.5.0) + yard (0.9.36) PLATFORMS x86_64-darwin-21 diff --git a/spec/rubocop_todo_corrector/commands/describe_spec.rb b/spec/rubocop_todo_corrector/commands/describe_spec.rb index 7515625..e87c18f 100644 --- a/spec/rubocop_todo_corrector/commands/describe_spec.rb +++ b/spec/rubocop_todo_corrector/commands/describe_spec.rb @@ -33,7 +33,7 @@ ### Style/RedundantArgument >
- >

This cop checks for a redundant argument passed to certain methods.

+ >

Checks for a redundant argument passed to certain methods.

>
>
> @@ -54,6 +54,7 @@ >
>
Methods:
             >   join: ''
+            >   sum: 0
             >   split: ' '
             >   chomp: "\n"
             >   chomp!: "\n"
@@ -87,6 +88,9 @@
             > # bad
             > array.join('')
             > [1, 2, 3].join("")
+            > array.sum(0)
+            > exit(true)
+            > exit!(false)
             > string.split(" ")
             > "first\nsecond".split(" ")
             > string.chomp("\n")
@@ -96,6 +100,9 @@
             > # good
             > array.join
             > [1, 2, 3].join
+            > array.sum
+            > exit
+            > exit!
             > string.split
             > "first second".split
             > string.chomp
diff --git a/spec/rubocop_todo_corrector/commands/ignore_spec.rb b/spec/rubocop_todo_corrector/commands/ignore_spec.rb
index f92db60..a68a89b 100644
--- a/spec/rubocop_todo_corrector/commands/ignore_spec.rb
+++ b/spec/rubocop_todo_corrector/commands/ignore_spec.rb
@@ -25,7 +25,7 @@
     end
 
     let(:tempfile) do
-      Tempfile.new(mode: ::File::RDWR)
+      Tempfile.new(mode: File::RDWR)
     end
 
     context 'with non-existent file path' do
diff --git a/spec/rubocop_todo_corrector/commands/pick_spec.rb b/spec/rubocop_todo_corrector/commands/pick_spec.rb
index d6422cd..ff7c497 100644
--- a/spec/rubocop_todo_corrector/commands/pick_spec.rb
+++ b/spec/rubocop_todo_corrector/commands/pick_spec.rb
@@ -35,7 +35,7 @@
     end
 
     let(:tempfile) do
-      Tempfile.new(mode: ::File::RDWR)
+      Tempfile.new(mode: File::RDWR)
     end
 
     context 'without existent .rubocop_todo.yml' do