diff --git a/.rubocop.yml b/.rubocop.yml index 2eaa7807..dda562cd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,5 @@ --- require: - - rubocop-performance - rubocop-rake AllCops: @@ -31,9 +30,6 @@ Metrics/ModuleLength: Metrics/ParameterLists: Max: 5 -Performance/Casecmp: - Enabled: false - Style/CommandLiteral: Exclude: - 'test_database.rb' diff --git a/Gemfile b/Gemfile index 8d4a474a..3311c587 100644 --- a/Gemfile +++ b/Gemfile @@ -10,5 +10,4 @@ gem 'rspec-its', '~> 1.2' gem 'codeclimate-test-reporter', '~> 1.0.3', group: :test, require: nil gem 'rubocop', '~> 1.56.3', require: false -gem 'rubocop-performance' gem 'rubocop-rake' diff --git a/lib/lhm/adapter.rb b/lib/lhm/adapter.rb index 5afd3e60..bff4b777 100644 --- a/lib/lhm/adapter.rb +++ b/lib/lhm/adapter.rb @@ -77,7 +77,7 @@ def rename_column(old_name, new_name) # @param index_name [String] def add_unique_index(columns, index_name = nil) options = { unique: true } - options.merge!(name: index_name) if index_name # rubocop:disable Performance/RedundantMerge + options.merge!(name: index_name) if index_name migration.add_index(table_name, columns, options) end