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? )

Space inside parentheses detected.
Open

if ( is_principal? )

Space inside parentheses detected.
Open

if ( is_principal? )

Tab detected.
Open

end

Tab detected.
Open

render action: "../users/edit_password"

Tab detected.
Open

@shifts = Shift.all

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

if ( @employee.update(employee_params) )

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

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

:employee_cpf,

Keep a blank line before and after private.
Open

private

Space inside parentheses detected.
Open

if ( is_principal? )

Space inside parentheses detected.
Open

if ( is_principal? )

Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
Open

if ( is_principal? )

Keep a blank line before and after private.
Open

private

Use 2 (not 1) spaces for indentation.
Open

include SessionsHelper

Space inside parentheses detected.
Open

if ( is_principal? )

Space inside parentheses detected.
Open

if( @alumn.save )

Space inside parentheses detected.
Open

if( @alumn.save )

Tab detected.
Open

def show
Severity
Category
Status
Source
Language