SpeciesFileGroup/taxonworks

View on GitHub
app/models/otu.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  # TODO, move to infer BiologicalCollectionObject
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: no longer true since they can come through Otu as well
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: REplace with Queries::Otu::Filter
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: move to helper method likely
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: Deprecate for helper method, HTML does not belong here
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: Re/move
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: This need to be renamed to reflect "simple" association
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

    # TODO: Unify to a single query
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: Replace with Queries::Otu::Filter
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

# TODO Semantics vs. taxon_name_id
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: This is coordinate_otus with children,
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: replace with filter
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  has_many :taxon_determinations, inverse_of: :otu, dependent: :destroy # TODO: change
Severity: Minor
Found in app/models/otu.rb by fixme

TODO found
Open

  # TODO: need's spec
Severity: Minor
Found in app/models/otu.rb by fixme

unexpected token tRPAREN (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

  scope :with_name, -> (name) { where(name:) }
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tCOMMA (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        Otu.where(project_id:, created_by_id: user_id, created_at: 3.hours.ago..Time.now).order('updated_at DESC').limit(3).to_a
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRPAREN (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      ).uniq.sort{|a,b| a.otu_name <=> b.otu_name}
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    Otu.coordinate_otus(otu_id).where(otus: {id:}).any?
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      h[:quick] = Otu.pinned_by(user_id).where(pinboard_items: {project_id:}).to_a.sort{|a,b| a.otu_name <=> b.otu_name}
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRPAREN (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

  scope :with_taxon_name_id, -> (taxon_name_id) { where(taxon_name_id:) }
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      pinboard: Otu.pinned_by(user_id).where(pinboard_items: {project_id:}).to_a,
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        Otu.pinned_by(user_id).where(pinboard_items: {project_id:}).to_a +
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token kEND (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

end
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tCOMMA (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        Otu.where(project_id:, created_by_id: user_id, created_at: 3.hours.ago..Time.now).order('updated_at DESC').limit(1).to_a +
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    }
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRPAREN (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      h[:recent] = Otu.where(project_id:).order('updated_at DESC').limit(10).to_a.sort{|a,b| a.otu_name <=> b.otu_name}
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRPAREN (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      ).uniq.sort{|a,b| a.otu_name <=> b.otu_name}
Severity: Minor
Found in app/models/otu.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

There are no issues that match your filters.

Category
Status