Merge pull request #1193 from yahonda/bump_rubocop

Bump RuboCop
This commit is contained in:
David Rodríguez 2020-12-31 12:35:14 +01:00 committed by GitHub
commit 9d336ced99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,5 @@
AllCops:
# TargetRubyVersion value is based on `required_ruby_version = '>= 2.3'` in the ransack.gemspec
TargetRubyVersion: 2.3
TargetRubyVersion: 2.6
DisabledByDefault: true
@ -31,6 +30,9 @@ Layout/SpaceInsideParens:
Layout/TrailingEmptyLines:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: true
Style/RedundantReturn:
Enabled: true

View File

@ -50,7 +50,4 @@ group :test do
gem 'simplecov', :require => false
end
# RuboCop 0.81.0 is the last version which supports Ruby 2.3.
# Once Ransack required_ruby_version is bumped, RuboCop version can be bumped.
# https://github.com/rubocop-hq/rubocop/pull/7869
gem 'rubocop', '=0.81.0', require: false
gem 'rubocop', require: false

View File

@ -1,7 +1,7 @@
require 'active_support/core_ext'
require 'ransack/configuration'
require 'ransack/adapters'
require 'polyamorous/polyamorous.rb'
require 'polyamorous/polyamorous'
Ransack::Adapters.object_mapper.require_constants

View File

@ -1,5 +1,5 @@
require 'machinist/active_record'
require 'polyamorous/polyamorous.rb'
require 'polyamorous/polyamorous'
require 'sham'
require 'faker'
require 'ransack'