Showing 208 of 208 total issues
Standard property 'transform' should come after vendor-prefixed property '-ms-transform'. Open
-ms-transform: rotate(5deg);
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.start-page-pictures .picture-3 {
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
enum form_of_address: %i(mr mrs prefer_to_omit)
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
%w(accepted rejected pending alternative)
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
%i(first_name last_name gender birth_date street_name zip_code city state country discovery_of_site)
- 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 current_user.profile.present?
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
before_action :set_application, only: %i(show edit update destroy check)
- 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.fetch(:user, false) && params[:user].fetch(:profile, false)
- 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?(:selected_participants)
- Read upRead up
- Exclude checks
Standard property 'transform' should come after vendor-prefixed property '-webkit-transform'. Open
-webkit-transform: rotate(5deg);
- Exclude checks
Standard property 'transform' should come after vendor-prefixed property '-moz-transform'. Open
-moz-transform: rotate(-5deg);
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
POSSIBLE_GENDERS = %w(male female other).freeze
- 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 filters.empty? # skip filtering if no filters have been set
- 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 current_user.role == 'admin' || current_user.role == 'organizer'
- 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 version_name.blank?
- Read upRead up
- Exclude checks
Avoid comparing a variable with multiple items in a conditional, use Array#include?
instead. Open
order_by = 'asc' unless order_by == 'asc' || order_by == 'desc'
- Read upRead up
- Exclude checks
%i
-literals should be delimited by [
and ]
. Open
Profile.allowed_params + %i(address name age)
- 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 participant2.requires_agreement_letter_for_event?(self)
- 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 birth_date.present? && birth_date.in_time_zone > Date.current
- Read upRead up
- Exclude checks