[RuboCop] Trailing Blank Lines Violations (#872)

This commit is contained in:
James Herdman 2019-02-25 16:53:32 -05:00 committed by Olle Jonsson
parent 39dd9549f8
commit dc4d8f620e
33 changed files with 27 additions and 39 deletions

View File

@ -188,13 +188,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.

View File

@ -34,4 +34,3 @@ group :test do
end
gemspec

View File

@ -12,4 +12,4 @@ require 'faraday'
# Pry.start
require 'irb'
IRB.start(__FILE__)
IRB.start(__FILE__)

View File

@ -69,4 +69,4 @@ module Faraday
end
end
end
end
end

View File

@ -143,4 +143,4 @@ module Faraday
end
end
end
end
end

View File

@ -16,4 +16,4 @@ module Faraday
builder_class.new(&block)
end
end
end
end

View File

@ -22,4 +22,4 @@ module Faraday
memoized(:user) { uri && uri.user && Utils.unescape(uri.user) }
memoized(:password) { uri && uri.password && Utils.unescape(uri.password) }
end
end
end

View File

@ -17,4 +17,4 @@ module Faraday
on_data.is_a?(Proc)
end
end
end
end

View File

@ -55,4 +55,4 @@ module Faraday
!verify?
end
end
end
end

View File

@ -134,4 +134,3 @@ module Faraday
end
end
end

View File

@ -49,4 +49,3 @@ module Faraday
end
end
end

View File

@ -16,4 +16,3 @@ module Faraday
end
end
end

View File

@ -14,4 +14,3 @@ module Faraday
end
end
end

View File

@ -15,4 +15,4 @@ RSpec.describe Faraday::Adapter::Patron do
expect { conn.get('/') }.to raise_error(RuntimeError, 'Configuration block called')
end
end
end

View File

@ -77,4 +77,4 @@ RSpec.describe Faraday::CompositeReadIO do
expect(subject.read(3)).to be_nil
end
end
end
end

View File

@ -42,4 +42,4 @@ RSpec.describe Faraday::ClientError do
it { expect(subject.inspect).to eq('#<Faraday::ClientError #<Faraday::ClientError: ["error1", "error2"]>>') }
end
end
end
end

View File

@ -67,4 +67,4 @@ RSpec.describe Faraday::Env do
end
end
end
end
end

View File

@ -282,4 +282,4 @@ RSpec.describe Faraday::Options do
end
end
end
end
end

View File

@ -32,4 +32,4 @@ RSpec.describe Faraday::ProxyOptions do
expect(proxy.password).to eq('pw d')
expect(proxy[:password]).to eq('pw d')
end
end
end

View File

@ -14,4 +14,4 @@ RSpec.describe Faraday::RequestOptions do
options.proxy = nil
expect(options.proxy).to be_nil
end
end
end

View File

@ -10,4 +10,4 @@ RSpec.describe Faraday::FlatParamsEncoder do
expected = {'a' => %w(one two three) }
expect(subject.decode(query)).to eq(expected)
end
end
end

View File

@ -121,4 +121,4 @@ RSpec.describe Faraday::NestedParamsEncoder do
let(:error_message) { "expected Array (got String) for param `a'" }
it_behaves_like 'a wrong decoding'
end
end
end

View File

@ -193,4 +193,4 @@ RSpec.describe Faraday::RackBuilder do
end
end
end
end
end

View File

@ -73,4 +73,4 @@ RSpec.describe Faraday::Request::Instrumentation do
it { expect(options.instrumenter).to eq(:custom) }
end
end
end

View File

@ -55,4 +55,4 @@ RSpec.describe Faraday::Request::Multipart do
let(:payload) { { :a => 1, :b => [{ :c => Faraday::UploadIO.new(__FILE__, 'text/x-ruby'), :d => 2 }] } }
it_behaves_like 'a multipart request'
end
end
end

View File

@ -67,4 +67,4 @@ RSpec.describe Faraday::Request::UrlEncoded do
response = conn.post('/echo', {'a'=>{'b'=>{'c'=>['d']}}})
expect(response.body).to eq("a%5Bb%5D%5Bc%5D%5B%5D=d")
end
end
end

View File

@ -49,4 +49,4 @@ RSpec.describe Faraday::Response::Middleware do
expect(conn.get('not_modified').body).to be_nil
end
end
end
end

View File

@ -53,4 +53,4 @@ RSpec.describe Faraday::Utils do
expect(headers).not_to have_key('authorization')
end
end
end
end

View File

@ -4,4 +4,4 @@ RSpec.describe Faraday do
it 'has a version number' do
expect(Faraday::VERSION).not_to be nil
end
end
end

View File

@ -10,4 +10,4 @@ FakeSafeBuffer = Struct.new(:string) do
yield(match)
}
end
end
end

View File

@ -96,4 +96,4 @@ module Faraday
(32..126).map{|i| i.chr}.cycle.take(50*kb).join
end
end
end
end

View File

@ -15,4 +15,4 @@ shared_examples 'a params encoder' do
it 'encodes nil' do
expect(subject.encode('a' => nil)).to eq('a')
end
end
end

View File

@ -32,4 +32,4 @@ module Faraday
end
end
end
end
end