mumuki/mumuki-classroom-api

View on GitHub

Showing 7 of 10 total issues

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

class Mumuki::Classroom::App < Sinatra::Application
  configure do
    enable :cross_origin
    set :allow_methods, [:get, :put, :post, :options, :delete]
    set :show_exceptions, false
Severity: Minor
Found in lib/mumuki/classroom/sinatra.rb - About 5 hrs to fix

    Class App has 27 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class Mumuki::Classroom::App < Sinatra::Application
    
      Mumukit::Platform.map_organization_routes!(self) do
    
        namespace '/api/courses/:course/massive' do
    Severity: Minor
    Found in lib/mumuki/classroom/sinatra/massive.rb - About 3 hrs to fix

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

      class Mumuki::Classroom::Assignment < Mumuki::Classroom::Document
        include Mongoid::Timestamps
      
        field :guide, type: Hash
        field :student, type: Hash
      Severity: Minor
      Found in lib/mumuki/classroom/models/assignment.rb - About 2 hrs to fix

        Method massive_response has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def massive_response(processed, unprocessed, errored, errored_msg, hash = {})
        Severity: Minor
        Found in lib/mumuki/classroom/sinatra/massive.rb - About 35 mins to fix

          Method pipeline has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def self.pipeline(query, sorting, ordering, searching, projection)
          Severity: Minor
          Found in lib/mumuki/classroom/models/reporting.rb - About 35 mins to fix

            Method aggregate has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def self.aggregate(collection, query, paginated_params, query_params, projection)
            Severity: Minor
            Found in lib/mumuki/classroom/models/reporting.rb - About 35 mins to fix

              Method build_pipeline has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def self.build_pipeline(collection, query, paginated_params, query_params, projection)
              Severity: Minor
              Found in lib/mumuki/classroom/models/reporting.rb - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language