QutBioacoustics/baw-server

View on GitHub
app/models/bookmark.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method filter_settings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.filter_settings
    {
      valid_fields: [:id, :audio_recording_id, :name, :category, :description, :offset_seconds, :created_at,
                     :creator_id, :updater_id, :updated_at],
      render_fields: [:id, :audio_recording_id, :name, :category, :description, :offset_seconds, :created_at,
Severity: Minor
Found in app/models/bookmark.rb - About 1 hr to fix

    Method schema has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.schema
        {
          type: 'object',
          additionalProperties: false,
          properties: {
    Severity: Minor
    Found in app/models/bookmark.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status