Showing 3,213 of 3,213 total issues
Tab detected. Open
end
- Exclude checks
Tab detected. Open
if( is_principal? )
- Exclude checks
Tab detected. Open
flash[:notice] = "Suspensão alterada com sucesso"
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
redirect_to "/errors/error_500"
- Read upRead up
- Exclude checks
Use ||
instead of or
. Open
if ( is_employee? or verify_alumn(id) or is_son?(id) )
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
render "suspensions/edit"
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
redirect_to "/errors/error_500"
- Read upRead up
- Exclude checks
Use 2 (not 3) spaces for indentation. Open
@alumns = Alumn.all.order('created_at DESC')
- Read upRead up
- Exclude checks
Replace class var @@alumn with a class instance var. Open
@@alumn = Alumn.find(id)
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if ( !(is_parent_related_to_alumn?(@alumn) or is_me?(@alumn) or is_principal?) )
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
flash[:alert] = "Suspensão excluída com sucesso"
- Read upRead up
- Exclude checks
Don't use parentheses around the condition of an if
. Open
if ( is_principal? )
- Read upRead up
- Exclude checks
Tab detected. Open
:address,
- Exclude checks