mumuki/mumuki-domain

View on GitHub
app/models/assignment.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Class Assignment has 39 methods (exceeds 20 allowed). Consider refactoring.
Open

class Assignment < Progress
  include Contextualization
  include WithMessages
  include Gamified

Severity: Minor
Found in app/models/assignment.rb - About 5 hrs to fix

    Method to_resource_h has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def to_resource_h
        excluded_fields = %i(created_at exercise_id id organization_id parent_id solution submission_id
                             submission_status submitted_at submitter_id top_submission_status updated_at misplaced)
    
        as_json(except: excluded_fields,
    Severity: Minor
    Found in app/models/assignment.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status