app/services/create_organisation_from_array.rb
Method has too many lines. [10/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def create(validate)
return nil if @csv_organisation.is_organisation_removed?
return nil if organisation_already_exists?
create_method = validate ? :create_and_validate : :create_and_substitute_with_empty
@organisation_repository.send(create_method,
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.