lujanfernaud/prevy

View on GitHub

Showing 1,727 of 1,727 total issues

!important should not be used
Open

  border-top-left-radius: $box-radius !important;

Color #E75448 should be written as #e75448
Open

  background: #E75448;

Shorthand form for property padding should be written more concisely as .8rem 1.5rem .5rem instead of .8rem 1.5rem .5rem 1.5rem
Open

  padding: .8rem 1.5rem .5rem 1.5rem;

Avoid qualifying class selectors with an element.
Open

ul.pagination {

Shorthand form for property padding should be written more concisely as .9rem .2rem .8rem instead of .9rem .2rem .8rem .2rem
Open

    padding: .9rem .2rem .8rem .2rem;

Selector event-box__short-description should be written in lowercase with hyphens
Open

.event-box__short-description {

0.75 should be written without a leading zero as .75
Open

  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;

Color literals like rgba(0, 0, 0, 0.15) should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

  border: 1px solid rgba(0, 0, 0, 0.15);

Properties should be ordered margin-bottom, margin-top
Open

  margin-top: 3rem;

Properties should be ordered margin-bottom, margin-top
Open

    margin-top: 4.5rem;

Properties should be ordered background, border, border-radius, font-size, padding
Open

  padding: 1.5rem 2rem 2.3rem 2rem;

Missing top-level class documentation comment.
Open

class RemovedGroupRoleNotifier

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Missing magic comment # frozen_string_literal: true.
Open

#!/usr/bin/env ruby
Severity: Minor
Found in bin/setup by rubocop

This cop is designed to help upgrade to Ruby 3.0. It will add the comment # frozen_string_literal: true to the top of files to enable frozen string literals. Frozen string literals may be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+.

Example: EnforcedStyle: when_needed (default)

# The `when_needed` style will add the frozen string literal comment
# to files only when the `TargetRubyVersion` is set to 2.3+.
# bad
module Foo
  # ...
end

# good
# frozen_string_literal: true

module Foo
  # ...
end

Example: EnforcedStyle: always

# The `always` style will always add the frozen string literal comment
# to a file, regardless of the Ruby version or if `freeze` or `<<` are
# called on a string literal.
# bad
module Bar
  # ...
end

# good
# frozen_string_literal: true

module Bar
  # ...
end

Example: EnforcedStyle: never

# The `never` will enforce that the frozen string literal comment does
# not exist in a file.
# bad
# frozen_string_literal: true

module Baz
  # ...
end

# good
module Baz
  # ...
end

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem friendly_id should appear before pg_search.
Open

gem 'friendly_id',                     '~> 5.2', '>= 5.2.4'
Severity: Minor
Found in Gemfile by rubocop

Gems should be alphabetically sorted within groups.

Example:

# bad
gem 'rubocop'
gem 'rspec'

# good
gem 'rspec'
gem 'rubocop'

# good
gem 'rubocop'

gem 'rspec'

# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'

!important should not be used
Open

    border-bottom-left-radius: calc(#{$box-radius} - 3px) !important;

Prefer single quoted strings
Open

@import "vendor/bootstrap-variables";

Prefer single quoted strings
Open

@import "layout/errors";

Prefer single quoted strings
Open

@import "sections/group-roles";

Prefer single quoted strings
Open

@import "sections/invitations";

Properties should be ordered color, min-height
Open

  min-height: 100vh;
Severity
Category
Status
Source
Language