Skip to content

Commit

Permalink
[RuboCop] Trailing Blank Lines Violations
Browse files Browse the repository at this point in the history
  • Loading branch information
jherdman committed Feb 25, 2019
1 parent e00e900 commit 15f7aa4
Show file tree
Hide file tree
Showing 34 changed files with 28 additions and 40 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Expand Up @@ -196,13 +196,6 @@ Layout/SpaceInsidePercentLiteralDelimiters:
Exclude:
- 'lib/faraday/adapter/rack.rb'

# Offense count: 41
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingBlankLines:
Enabled: false

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AllowInHeredoc.
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -34,4 +34,3 @@ group :test do
end

gemspec

2 changes: 1 addition & 1 deletion bin/console
Expand Up @@ -12,4 +12,4 @@ require 'faraday'
# Pry.start

require 'irb'
IRB.start(__FILE__)
IRB.start(__FILE__)
2 changes: 1 addition & 1 deletion lib/faraday/encoders/flat_params_encoder.rb
Expand Up @@ -69,4 +69,4 @@ def self.decode(query)
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/faraday/encoders/nested_params_encoder.rb
Expand Up @@ -143,4 +143,4 @@ def self.dehash(hash, depth)
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/faraday/options.rb
Expand Up @@ -211,4 +211,4 @@ def self.fetch_error_class
require 'faraday/options/ssl_options'
require 'faraday/options/proxy_options'
require 'faraday/options/connection_options'
require 'faraday/options/env'
require 'faraday/options/env'
2 changes: 1 addition & 1 deletion lib/faraday/options/connection_options.rb
Expand Up @@ -16,4 +16,4 @@ def new_builder(block)
builder_class.new(&block)
end
end
end
end
2 changes: 1 addition & 1 deletion lib/faraday/options/proxy_options.rb
Expand Up @@ -22,4 +22,4 @@ def self.from(value)
memoized(:user) { uri && uri.user && Utils.unescape(uri.user) }
memoized(:password) { uri && uri.password && Utils.unescape(uri.password) }
end
end
end
2 changes: 1 addition & 1 deletion lib/faraday/options/request_options.rb
Expand Up @@ -17,4 +17,4 @@ def stream_response?
on_data.is_a?(Proc)
end
end
end
end
2 changes: 1 addition & 1 deletion lib/faraday/options/ssl_options.rb
Expand Up @@ -55,4 +55,4 @@ def disable?
!verify?
end
end
end
end
1 change: 0 additions & 1 deletion lib/faraday/request.rb
Expand Up @@ -134,4 +134,3 @@ def to_env(connection)
end
end
end

1 change: 0 additions & 1 deletion lib/faraday/request/authorization.rb
Expand Up @@ -49,4 +49,3 @@ def call(env)
end
end
end

1 change: 0 additions & 1 deletion lib/faraday/request/basic_authentication.rb
Expand Up @@ -16,4 +16,3 @@ def self.header(login, pass)
end
end
end

1 change: 0 additions & 1 deletion lib/faraday/request/token_authentication.rb
Expand Up @@ -14,4 +14,3 @@ def initialize(app, token, options = nil)
end
end
end

2 changes: 1 addition & 1 deletion spec/faraday/adapter/patron_spec.rb
Expand Up @@ -15,4 +15,4 @@

expect { conn.get('/') }.to raise_error(RuntimeError, 'Configuration block called')
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/composite_read_io_spec.rb
Expand Up @@ -77,4 +77,4 @@ def composite_io(*parts)
expect(subject.read(3)).to be_nil
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/error_spec.rb
Expand Up @@ -42,4 +42,4 @@
it { expect(subject.inspect).to eq('#<Faraday::ClientError #<Faraday::ClientError: ["error1", "error2"]>>') }
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/options/env_spec.rb
Expand Up @@ -67,4 +67,4 @@
end
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/options/options_spec.rb
Expand Up @@ -282,4 +282,4 @@ class ParentOptions < Faraday::Options.new(:a, :b, :c)
end
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/options/proxy_options_spec.rb
Expand Up @@ -32,4 +32,4 @@
expect(proxy.password).to eq('pw d')
expect(proxy[:password]).to eq('pw d')
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/options/request_options_spec.rb
Expand Up @@ -14,4 +14,4 @@
options.proxy = nil
expect(options.proxy).to be_nil
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/params_encoders/flat_spec.rb
Expand Up @@ -10,4 +10,4 @@
expected = {'a' => %w(one two three) }
expect(subject.decode(query)).to eq(expected)
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/params_encoders/nested_spec.rb
Expand Up @@ -121,4 +121,4 @@
let(:error_message) { "expected Array (got String) for param `a'" }
it_behaves_like 'a wrong decoding'
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/rack_builder_spec.rb
Expand Up @@ -193,4 +193,4 @@ class Broken < Faraday::Middleware
end
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/request/instrumentation_spec.rb
Expand Up @@ -73,4 +73,4 @@ def instrument(name, env)

it { expect(options.instrumenter).to eq(:custom) }
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/request/multipart_spec.rb
Expand Up @@ -55,4 +55,4 @@
let(:payload) { { :a => 1, :b => [{ :c => Faraday::UploadIO.new(__FILE__, 'text/x-ruby'), :d => 2 }] } }
it_behaves_like 'a multipart request'
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/request/url_encoded_spec.rb
Expand Up @@ -67,4 +67,4 @@
response = conn.post('/echo', {'a'=>{'b'=>{'c'=>['d']}}})
expect(response.body).to eq("a%5Bb%5D%5Bc%5D%5B%5D=d")
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/response/middleware_spec.rb
Expand Up @@ -49,4 +49,4 @@ def parse(body)
expect(conn.get('not_modified').body).to be_nil
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday/utils_spec.rb
Expand Up @@ -53,4 +53,4 @@
expect(headers).not_to have_key('authorization')
end
end
end
end
2 changes: 1 addition & 1 deletion spec/faraday_spec.rb
Expand Up @@ -4,4 +4,4 @@
it 'has a version number' do
expect(Faraday::VERSION).not_to be nil
end
end
end
2 changes: 1 addition & 1 deletion spec/support/fake_safe_buffer.rb
Expand Up @@ -10,4 +10,4 @@ def gsub(regex)
yield(match)
}
end
end
end
2 changes: 1 addition & 1 deletion spec/support/helper_methods.rb
Expand Up @@ -96,4 +96,4 @@ def big_string
(32..126).map{|i| i.chr}.cycle.take(50*kb).join
end
end
end
end
2 changes: 1 addition & 1 deletion spec/support/shared_examples/params_encoder.rb
Expand Up @@ -15,4 +15,4 @@
it 'encodes nil' do
expect(subject.encode('a' => nil)).to eq('a')
end
end
end
2 changes: 1 addition & 1 deletion spec/support/streaming_response_checker.rb
Expand Up @@ -32,4 +32,4 @@ def check_streaming_response(streamed, options = {})
end
end
end
end
end

0 comments on commit 15f7aa4

Please sign in to comment.