hpi-schuelerklub/workshop-portal

View on GitHub

Showing 208 of 208 total issues

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

if current_user.role == 'pupil'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

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

if request.env['omniauth.auth'].info.email.to_s.empty?

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

if @user.update(user_params)
Severity: Minor
Found in app/controllers/users_controller.rb by rubocop

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

if number_of_files == 0

Standard property 'transform' should come after vendor-prefixed property '-moz-transform'.
Open

-moz-transform: rotate(5deg);

Standard property 'transform' should come after vendor-prefixed property '-webkit-transform'.
Open

-webkit-transform: rotate(-5deg);

Don't use IDs in selectors.
Open

#wsp-login-remember-me {
Severity: Minor
Found in app/assets/stylesheets/users.css by csslint

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

if @event.hidden

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

if @event.has_participants_without_status_notification?(:alternative)

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

if empty

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

if after_deadline?
Severity: Minor
Found in app/models/application_letter.rb by rubocop

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

if end_date < start_date
Severity: Minor
Found in app/models/date_range.rb by rubocop

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

if @event.hidden && !can?(:view_hidden, Event)

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

unless params.key?(:file)

%i-literals should be delimited by [ and ].
Open

skip_authorize_resource only: %i(badges download_agreement_letters send_participants_email)

%i-literals should be delimited by [ and ].
Open

skip_authorize_resource only: %i(new create)

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

if @event.hidden

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

if number_of_files != 0

Use %i or %I for an array of symbols.
Open

date_ranges_attributes: [:start_date, :end_date, :id]

%i-literals should be delimited by [ and ].
Open

before_action :set_profile, only: %i(show edit update destroy)
Severity
Category
Status
Source
Language