unepwcmc/SAPI

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

Summary

Maintainability
A
1 hr
Test Coverage

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

  def initialize(params)
    sanitized_params = {
      # possible taxonomies are cms and cites_eu
      taxonomy: whitelist_param(
        sanitise_symbol(params[:taxonomy]),
Severity: Minor
Found in app/services/species/search_params.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status