mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
Add RuboCop, start configuration, add --auto-gen-config (#851)
This commit is contained in:
parent
9939ba6234
commit
848251420a
13
.rubocop.yml
Normal file
13
.rubocop.yml
Normal file
@ -0,0 +1,13 @@
|
||||
inherit_from: .rubocop_todo.yml
|
||||
|
||||
AllCops:
|
||||
DisplayCopNames: true
|
||||
DisplayStyleGuide: true
|
||||
TargetRubyVersion: 2.3
|
||||
|
||||
Naming/MethodName:
|
||||
Exclude:
|
||||
- test/adapters/integration.rb
|
||||
- test/adapters/rack_test.rb
|
||||
|
||||
|
1207
.rubocop_todo.yml
Normal file
1207
.rubocop_todo.yml
Normal file
File diff suppressed because it is too large
Load Diff
2
Gemfile
2
Gemfile
@ -23,6 +23,7 @@ group :test do
|
||||
gem 'patron', '>= 0.4.2', :platforms => :ruby
|
||||
gem 'rack-test', '>= 0.6', :require => 'rack/test'
|
||||
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
|
||||
gem 'rubocop', '~> 0.65.0'
|
||||
gem 'simplecov'
|
||||
gem 'sinatra', '~> 1.3'
|
||||
gem 'typhoeus', '~> 1.3', :git => 'https://github.com/typhoeus/typhoeus.git', :require => 'typhoeus'
|
||||
@ -31,3 +32,4 @@ group :test do
|
||||
end
|
||||
|
||||
gemspec
|
||||
|
||||
|
@ -49,7 +49,7 @@ module Faraday
|
||||
# url - A String or URI.
|
||||
#
|
||||
# Returns a parsed URI.
|
||||
def URI(url)
|
||||
def URI(url) # rubocop:disable Naming/MethodName
|
||||
if url.respond_to?(:host)
|
||||
url
|
||||
elsif url.respond_to?(:to_str)
|
||||
|
Loading…
x
Reference in New Issue
Block a user