testmycode/tmc-server

View on GitHub
app/models/exercise.rb

Summary

Maintainability
D
1 day
Test Coverage

Class Exercise has 66 methods (exceeds 20 allowed). Consider refactoring.
Open

class Exercise < ApplicationRecord
  self.include_root_in_json = false
  include Swagger::Blocks

  swagger_schema :ExerciseWithPoints do
Severity: Major
Found in app/models/exercise.rb - About 1 day to fix

    File exercise.rb has 404 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'shellwords'
    
    require 'date_and_time_utils'
    
    class Exercise < ApplicationRecord
    Severity: Minor
    Found in app/models/exercise.rb - About 5 hrs to fix

      There are no issues that match your filters.

      Category
      Status