Showing 31 of 31 total issues
Subject has no descriptive comment Open
class Subject < ApplicationRecord
- Read upRead up
- Exclude checks
Align the elements of a hash literal if they span more than one line. Open
maximum: 20,
- Read upRead up
- Exclude checks
Tab detected. Open
has_many :classrooms, through: :classroom_subjects
- Exclude checks
Tab detected. Open
length: { minimum: 5,
- Exclude checks
Tab detected. Open
:too_long => "deve possuir no máximo 20 caracteres."}
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
presence: { message: "não válido para criar matéria!" },
- Read upRead up
- Exclude checks
Missing top-level class documentation comment. Open
class Subject < ApplicationRecord
- Read upRead up
- Exclude checks
Tab detected. Open
validates_associated :alumns
- Exclude checks
Align the elements of a hash literal if they span more than one line. Open
:too_short => "deve possuir mais de 5 caracteres.",
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
:too_long => "deve possuir no máximo 20 caracteres."}
- Read upRead up
- Exclude checks
Inconsistent indentation detected. Open
validates :name_subject, presence: { message: "Não pode estar em branco!" }, length: { minimum: 5, maximum: 20, :too_short => "deve possuir mais de 5 caracteres.",
- Read upRead up
- Exclude checks
Tab detected. Open
has_many :alumns, through: :grades
- Exclude checks
Tab detected. Open
has_many :classroom_subjects, dependent: :destroy
- Exclude checks
Tab detected. Open
validates_associated :grades
- Exclude checks
Use the new Ruby 1.9 hash syntax. Open
:too_long => "deve possuir no máximo 20 caracteres."}
- Read upRead up
- Exclude checks
Tab detected. Open
has_many :grades, dependent: :destroy
- Exclude checks
Tab detected. Open
belongs_to :classroom_grade
- Exclude checks
Tab detected. Open
:too_short => "deve possuir mais de 5 caracteres.",
- Exclude checks
Align the elements of a hash literal if they span more than one line. Open
:too_long => "deve possuir no máximo 20 caracteres."}
- Read upRead up
- Exclude checks
Tab detected. Open
belongs_to :teacher
- Exclude checks
Tab detected. Open
maximum: 20,
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
presence: { message: "Não pode estar em branco!" }, length: { minimum: 5, maximum: 20, :too_short => "deve possuir mais de 5 caracteres.", :too_long => "deve possuir no máximo 20 caracteres."}
- Read upRead up
- Exclude checks
Space inside } missing. Open
:too_long => "deve possuir no máximo 20 caracteres."}
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
:too_short => "deve possuir mais de 5 caracteres.",
- Read upRead up
- Exclude checks
Tab detected. Open
presence: { message: "Não pode estar em branco!" },
- Exclude checks
Inconsistent indentation detected. Open
validates :teacher, presence: { message: "não válido para criar matéria!" }, uniqueness: true
- Read upRead up
- Exclude checks
Use the new Ruby 1.9 hash syntax. Open
:too_short => "deve possuir mais de 5 caracteres.",
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
presence: { message: "Não pode estar em branco!" },
- Read upRead up
- Exclude checks