lujanfernaud/prevy

View on GitHub

Showing 1,727 of 1,727 total issues

Prefer single quoted strings
Open

@import "vendor-modifications/trix";

Color literals like #E5C30F should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

  background: #E5C30F;

Avoid using id selectors
Open

#error_explanation {

Selector previous_page should be written in lowercase with hyphens
Open

.previous_page {

Selector next_page should be written in lowercase with hyphens
Open

.next_page {

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

  padding: 1rem 1rem .9rem 1rem;

0.38 should be written without a leading zero as .38
Open

  margin-top: 0.38rem;

Selector user-box__points should be written in lowercase with hyphens
Open

.user-box__name,

Missing magic comment # frozen_string_literal: true.
Open

# Add your own tasks in files placed in lib/tasks ending in .rake,
Severity: Minor
Found in Rakefile 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

Missing magic comment # frozen_string_literal: true.
Open

#!/usr/bin/env ruby
Severity: Minor
Found in bin/rake 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

Commas in function arguments should be followed by one space
Open

  box-shadow: 0 3px 10px rgba(27,31,35,0.2);

Prefer single quoted strings
Open

@import "layout/header";

!important should not be used
Open

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

Selector browser-window__header should be written in lowercase with hyphens
Open

.browser-window__header {

Properties should be ordered fill, width
Open

  width: 169px;

Properties should be ordered background, border-radius, display, height, position, width
Open

  position: relative;

Selector event-box__date should be written in lowercase with hyphens
Open

.event-box__date {

Selector event-box-big__img should be written in lowercase with hyphens
Open

.event-box-big__img {

0.375 should be written without a leading zero as .375
Open

  padding: 0.375rem 1.5rem 0.375rem 0.75rem;

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.
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;
Severity
Category
Status
Source
Language