SpeciesFileGroup/taxonworks

View on GitHub
app/models/image.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

      # TODO: special considerations for 1:1?
Severity: Minor
Found in app/models/image.rb by fixme

TODO found
Open

  # TODO: move to /lib
Severity: Minor
Found in app/models/image.rb by fixme

TODO found
Open

        else # tall into tall # TODO: or 1:1?!
Severity: Minor
Found in app/models/image.rb by fixme

TODO found
Open

  # TODO:
Severity: Minor
Found in app/models/image.rb by fixme

TODO found
Open

      cropped = img.crop(0,0, 1, 1)  # return a single pixel on error ! TODO: make/return an error image
Severity: Minor
Found in app/models/image.rb by fixme

TODO found
Open

  # TODO:
Severity: Minor
Found in app/models/image.rb by fixme

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

    }
Severity: Minor
Found in app/models/image.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] = Image.pinned_by(user_id).pinboard_inserted.where(pinboard_items: {project_id:}).order('updated_at DESC')
Severity: Minor
Found in app/models/image.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] = Image.where(project_id:).order('updated_at DESC').limit(10).to_a
Severity: Minor
Found in app/models/image.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

        Image.pinned_by(user_id).pinboard_inserted.where(project_id:).to_a +
Severity: Minor
Found in app/models/image.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

      pinboard: Image.pinned_by(user_id).where(project_id:).to_a,
Severity: Minor
Found in app/models/image.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

        Image.where(project_id:, created_by_id: user_id, created_at: 3.hours.ago..Time.now)
Severity: Minor
Found in app/models/image.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.updated_at <=> b.updated_at}
Severity: Minor
Found in app/models/image.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