Skip to content

Commit

Permalink
Disable rubocop for #1537
Browse files Browse the repository at this point in the history
  • Loading branch information
namusyaka committed Dec 30, 2016
1 parent 6a24f65 commit f0711eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ Style/MultilineIfModifier:

Style/RaiseArgs:
Enabled: false

Lint/UnneededDisable:
Enabled: false
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ end
appraise 'rack-1.5.2' do
gem 'rack', '1.5.2'
end

appraise 'rails-edge' do
gem 'arel', github: 'rails/arel'
end
4 changes: 2 additions & 2 deletions gemfiles/rails_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

source 'https://rubygems.org'

gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'

group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '~> 0.45.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand Down
2 changes: 1 addition & 1 deletion lib/grape/middleware/versioner/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def default_options
def before
path = env[Grape::Http::Headers::PATH_INFO].dup

if prefix && path.index(prefix) == 0
if prefix && path.index(prefix) == 0 # rubocop:disable all
path.sub!(prefix, '')
path = Grape::Router.normalize_path(path)
end
Expand Down

0 comments on commit f0711eb

Please sign in to comment.