>
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