Skip to content

Commit

Permalink
minor: fixing style checks for rubocop update
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Black committed Sep 24, 2013
1 parent 9296399 commit 5b1ffc5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 32 deletions.
30 changes: 5 additions & 25 deletions .rubocop.yml
Expand Up @@ -104,10 +104,6 @@ EmptyLines:
SpaceAroundOperators:
Enabled: true

# Use spaces around { and before }.
SpaceAroundBraces:
Enabled: true

# No spaces after ( or before ).
SpaceInsideParens:
Enabled: true
Expand Down Expand Up @@ -234,20 +230,12 @@ MethodAndVariableSnakeCase:
ClassAndModuleCamelCase:
Enabled: true

# Prefer each over for.
AvoidFor:
Enabled: true

# Avoid Perl-style global variables.
AvoidPerlisms:
Enabled: true

# Avoid Perl-style regex back references.
AvoidPerlBackrefs:
Enabled: true
# Allow class vars (but please don't use them)
ClassVars:
Enabled: false

# Avoid the use of class variables.
AvoidClassVars:
# We don't require numeric any formatting, but for larger numbers you should
NumericLiterals:
Enabled: false

# Don't interpolate global, instance and class variables directly in strings.
Expand Down Expand Up @@ -330,10 +318,6 @@ LeadingCommentSpace:
ColonMethodCall:
Enabled: true

# Do not introduce global variables.
AvoidGlobalVars:
Enabled: true

# The use of eval represents a serious security risk.
Eval:
Enabled: true
Expand Down Expand Up @@ -397,10 +381,6 @@ Void:
UnreachableCode:
Enabled: true

# Unused local variable.
UnusedLocalVariable:
Enabled: true

# Do not use the same name as outer local variable
# for block arguments or block local variables.
ShadowingOuterLocalVariable:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -15,7 +15,7 @@ group :testing do

platforms :ruby_19, :ruby_20, :jruby do
gem 'coveralls', :require => false
gem 'rubocop' if RUBY_VERSION > '1.9'
gem 'rubocop', '0.13.1' if RUBY_VERSION > '1.9'
end
end

Expand Down
3 changes: 1 addition & 2 deletions spec/mongo/cursor_spec.rb
Expand Up @@ -149,8 +149,7 @@

context 'when multiple requests are needed' do
let(:responses) do
[results(nonzero, total_docs - delta),
results(0, delta)]
[results(nonzero, total_docs - delta), results(0, delta)]
end

it 'does not limit the first query message' do
Expand Down
1 change: 0 additions & 1 deletion spec/mongo/protocol/delete_spec.rb
Expand Up @@ -158,4 +158,3 @@
end
end
end

1 change: 0 additions & 1 deletion spec/mongo/protocol/get_more_spec.rb
Expand Up @@ -137,4 +137,3 @@
end
end
end

1 change: 0 additions & 1 deletion spec/mongo/protocol/update_spec.rb
Expand Up @@ -176,4 +176,3 @@
end
end
end

2 changes: 1 addition & 1 deletion spec/support/shared/cursor.rb
Expand Up @@ -16,4 +16,4 @@ def results(cursor_id = 0, nreturned = 5)
let(:responses) do
results
end
end
end

0 comments on commit 5b1ffc5

Please sign in to comment.