hpi-schuelerklub/workshop-portal

View on GitHub

Showing 208 of 208 total issues

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

-ms-transform: rotate(5deg);

Rule doesn't have all its properties in alphabetical order.
Open

.start-page-pictures .picture-3 {

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

enum form_of_address: %i(mr mrs prefer_to_omit)
Severity: Minor
Found in app/models/request.rb by rubocop

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

%w(accepted rejected pending alternative)
Severity: Minor
Found in app/models/application_letter.rb by rubocop

%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)
Severity: Minor
Found in app/models/profile.rb by rubocop

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?
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

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

before_action :set_application, only: %i(show edit update destroy check)

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)

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)

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

-webkit-transform: rotate(5deg);

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

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

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

POSSIBLE_GENDERS = %w(male female other).freeze
Severity: Minor
Found in app/models/profile.rb by rubocop

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

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

%w(jpg jpeg gif png)

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'
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 version_name.blank?

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'
Severity: Minor
Found in app/models/event.rb by rubocop

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

Profile.allowed_params + %i(address name age)
Severity: Minor
Found in app/models/profile.rb by rubocop

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)
Severity: Minor
Found in app/models/event.rb by rubocop

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
Severity: Minor
Found in app/models/profile.rb by rubocop
Severity
Category
Status
Source
Language