Permalink
Browse files

Remove unnecesary variables

  • Loading branch information...
1 parent 51b2de4 commit 2b7a916818dcd3cdc789322ba0c26e80cd4772ee @matugm matugm committed with tagomoris Mar 9, 2015
Showing with 35 additions and 5 deletions.
  1. +33 −0 .rubocop.yml
  2. +1 −2 spec/cruby/buffer_io_spec.rb
  3. +1 −3 spec/cruby/buffer_spec.rb
View
@@ -0,0 +1,33 @@
+# This configuration was generated by `rubocop --auto-gen-config`
+# on 2015-03-09 17:42:55 +0100 using RuboCop version 0.29.1.
+# The point is for the user to remove these configuration records
+# one by one as the offenses are removed from the code base.
+# Note that changes in the inspected code, or installation of new
+# versions of RuboCop, may require this file to be generated again.
+
+# Offense count: 3
+Lint/AmbiguousOperator:
+ Enabled: false
+
+# Offense count: 1
+# Configuration parameters: AllowSafeAssignment.
+Lint/AssignmentInCondition:
+ Enabled: false
+
+# Offense count: 1
+Lint/Eval:
+ Enabled: false
+
+# Offense count: 3
+# Cop supports --auto-correct.
+Lint/UnusedBlockArgument:
+ Enabled: false
+
+# Offense count: 35
+# Cop supports --auto-correct.
+Lint/UnusedMethodArgument:
+ Enabled: false
+
+# Offense count: 128
+Lint/Void:
+ Enabled: false
@@ -137,7 +137,7 @@ def set_source(s)
50.times {
fragments = []
- sx = r.bytes(0)
+ r.bytes(0)
r.rand(4).times do
n = r.rand(1024*1400)
@@ -253,4 +253,3 @@ def set_source(s)
}
end
end
-
@@ -379,7 +379,6 @@
end
it 'big write -> short write' do
- biglen = 1024*1024 + 2
big1 = "a" * (1024*1024 + 2)
case_keys.each {|k|
@@ -557,7 +556,7 @@
n = r.rand(1024*1400)
begin
b.skip_all(n)
- ex = s.slice!(0, n)
+ s.slice!(0, n)
b.size.should == s.size
ensure EOFError
b.size.should == s.size
@@ -569,4 +568,3 @@
}
end
end
-

0 comments on commit 2b7a916

Please sign in to comment.