From cf11ef8ba2f87cd6a5559f7583e7b964ef6b1c61 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Mon, 10 Jun 2019 03:58:14 +0800 Subject: [PATCH] Ignore parameter list length for ProductImport::EntryValidator This can be done in a separate PR. More tests might be needed when extracting to a class. --- app/models/product_import/entry_validator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/product_import/entry_validator.rb b/app/models/product_import/entry_validator.rb index be6f55854a..f50e3cd0ac 100644 --- a/app/models/product_import/entry_validator.rb +++ b/app/models/product_import/entry_validator.rb @@ -4,6 +4,7 @@ module ProductImport class EntryValidator + # rubocop:disable Metrics/ParameterLists def initialize(current_user, import_time, spreadsheet_data, editable_enterprises, inventory_permissions, reset_counts, import_settings, all_entries) @current_user = current_user @@ -15,6 +16,7 @@ module ProductImport @import_settings = import_settings @all_entries = all_entries end + # rubocop:enable Metrics/ParameterLists def self.non_updatable_fields {