fga-gpp-mds/2017.1-Escola-X

View on GitHub

Showing 3,213 of 3,213 total issues

Space inside parentheses detected.
Open

if ( is_principal? )

Don't use parentheses around the condition of an if.
Open

if ( is_employee? )

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

redirect_to "/errors/error_500"

Indent access modifiers like private.
Open

private

Inconsistent indentation detected.
Open

def add_alumns
if ( is_principal? )
@classroom = Classroom.find(params[:id])
@alumns = @classroom.alumns.order('name')
else

Space inside parentheses detected.
Open

if ( @classroom.save )

Don't use parentheses around a method call.
Open

if ( is_principal? )

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

render "classrooms/add_alumns"

Inconsistent indentation detected.
Open

if (@employee.save)
redirect_to users_path
end

Inconsistent indentation detected.
Open

if ( @employee.update(employee_params) )
redirect_to @employee
else
render 'edit'
end

Use 2 (not 1) spaces for indentation.
Open

if ( is_principal? )

Use 2 (not -1) spaces for indentation.
Open

@shifts = Shift.all

Tab detected.
Open

def edit_password_employee

Tab detected.
Open

else

Tab detected.
Open

redirect_to "/errors/error_500"

Don't use parentheses around a method call.
Open

if ( is_employee? )

Align the parameters of a method call if they span more than one line.
Open

:employee_id,

Space inside parentheses detected.
Open

if ( is_employee? or verify_alumn(id) or is_son?(id) )

Space inside parentheses detected.
Open

if( is_principal? )

Space inside parentheses detected.
Open

if( @suspension.destroy )
Severity
Category
Status
Source
Language