Krystosterone/rubik

View on GitHub

Showing 14 of 14 total issues

Method set_defaults has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def set_defaults
@additional_current_condition = proc { true } unless defined?(@additional_current_condition)
@controller_name = key.split(".").first unless defined?(@controller_name)
@key = controller_name unless defined?(@key)
@visible = proc { true } unless defined?(@visible)
Severity: Minor
Found in app/models/breadcrumb/crumb.rb - About 45 mins to fix

Method == has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def ==(other)
return false unless code == other.code
return false unless index == other.index
return false unless number == other.number
return false unless type == other.type
Severity: Minor
Found in app/models/schedule_course.rb - About 45 mins to fix

Mass assignment is not restricted using attr_accessible
Open

class Agenda < ApplicationRecord
Severity: Critical
Found in app/models/agenda.rb by brakeman

Unprotected mass assignment
Open

@user = User.new(user_params)

Unprotected mass assignment
Open

@agenda.assign_attributes(agenda_params)

Mass assignment is not restricted using attr_accessible
Open

class AcademicDegreeTermCourse < ApplicationRecord

Mass assignment is not restricted using attr_accessible
Open

class AcademicDegreeTerm < ApplicationRecord
Severity: Critical
Found in app/models/academic_degree_term.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class ApplicationRecord < ActiveRecord::Base
Severity: Critical
Found in app/models/application_record.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class Agenda::Course < ApplicationRecord
Severity: Critical
Found in app/models/agenda/course.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class Course < ApplicationRecord
Severity: Critical
Found in app/models/course.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class AcademicDegree < ApplicationRecord
Severity: Critical
Found in app/models/academic_degree.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class Schedule < ApplicationRecord
Severity: Critical
Found in app/models/schedule.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class Term < ApplicationRecord
Severity: Critical
Found in app/models/term.rb by brakeman

Mass assignment is not restricted using attr_accessible
Open

class User < ApplicationRecord
Severity: Critical
Found in app/models/user.rb by brakeman
Severity
Category
Status
Source
Language