SpeciesFileGroup/taxonworks

View on GitHub
app/models/concerns/shared/unify.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  #  TODO: Revist. depending on the`related_XXX naming pattern is brittle-ish.
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

TODO found
Open

  # TODO: Not yet used, likely not needed.
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

TODO found
Open

  #    TODO: add delayed job handling
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

TODO found
Open

  # TODO: Not yet used, likely not needed.
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

TODO found
Open

      else # TODO: HasOne check?!
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

TODO found
Open

  #  TODO: Is there some other reason those with class_name fail that we are missing?
Severity: Minor
Found in app/models/concerns/shared/unify.rb by fixme

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

          s[r.name] = { total: 1, name: }
Severity: Minor
Found in app/models/concerns/shared/unify.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

      merge_relations(only:, except:).each do |r|
Severity: Minor
Found in app/models/concerns/shared/unify.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

        s[r.name] = { total: i.count, name: }
Severity: Minor
Found in app/models/concerns/shared/unify.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

      result: { unified: nil, total_related: 0, target_project_id:},
Severity: Minor
Found in app/models/concerns/shared/unify.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 $end (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

Severity: Minor
Found in app/models/concerns/shared/unify.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