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'
- Read upRead up
- Exclude checks
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?
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Standard property 'transform' should come after vendor-prefixed property '-moz-transform'. Open
-moz-transform: rotate(5deg);
- Exclude checks
Standard property 'transform' should come after vendor-prefixed property '-webkit-transform'. Open
-webkit-transform: rotate(-5deg);
- Exclude checks
Don't use IDs in selectors. Open
#wsp-login-remember-me {
- Exclude checks
Favor modifier if
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
. Open
if @event.hidden
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
Favor modifier if
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
. Open
if empty
- Read upRead up
- Exclude checks
Favor modifier if
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
. Open
if after_deadline?
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
Favor modifier unless
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
. Open
unless params.key?(:file)
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
skip_authorize_resource only: %i(badges download_agreement_letters send_participants_email)
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
skip_authorize_resource only: %i(new create)
- Read upRead up
- Exclude checks
Favor modifier if
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
. Open
if @event.hidden
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Use %i
or %I
for an array of symbols. Open
date_ranges_attributes: [:start_date, :end_date, :id]
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
before_action :set_profile, only: %i(show edit update destroy)
- Read upRead up
- Exclude checks