unepwcmc/SAPI

View on GitHub
app/services/trade/search_params.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def initialize(params)
    sanitized_params = {
      taxon_concepts_ids: sanitise_integer_array(params[:taxon_concepts_ids]),
      reported_taxon_concepts_ids: sanitise_integer_array(params[:reported_taxon_concepts_ids]),
      appendices: sanitise_string_array(params[:appendices]),
Severity: Minor
Found in app/services/trade/search_params.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status