lujanfernaud/prevy

View on GitHub

Showing 1,727 of 1,727 total issues

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

  margin-top: .6rem;

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

    fill: #fff;

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

  color: #fff;

Properties should be ordered -moz-appearance, -webkit-appearance, appearance, background, background-size, border, border-radius, color, display, height, line-height, max-width, padding, vertical-align
Open

  display: inline-block;

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

    padding: .5rem .33rem .6rem .33rem;

Properties should be ordered bottom, color, font-size, font-weight, left, margin-bottom, margin-right, position, text-align, text-shadow
Open

  left: 1.1rem;

Properties should be ordered font-size, margin-bottom
Open

  margin-bottom: 0.5rem;

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

.event-box-big__website {

Extra empty line detected at class body end.
Open


end
Severity: Minor
Found in app/uploaders/image_uploader.rb by rubocop

This cops checks if empty lines around the bodies of classes match the configuration.

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

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

  padding: 0.375rem 1.5rem 0.375rem 0.75rem;

Freeze mutable objects assigned to constants.
Open

  STANDARD_SIZE = [730, 411]
Severity: Minor
Found in app/uploaders/image_uploader.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

      cloudinary_transformation quality: "auto"
Severity: Minor
Found in app/uploaders/image_uploader.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Inconsistent indentation detected.
Open

    def group_role_notification_email(params)
      @user  = params[:user]
      @group = params[:group]
      @role  = params[:role]
      @url   = user_notifications_url(@user)
Severity: Minor
Found in app/mailers/notification_mailer.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

  spring = lockfile.specs.detect { |spec| spec.name == "spring" }
Severity: Minor
Found in bin/spring by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

.user-box__name,

Color literals like rgba(75, 12, 178, 0.032) should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

  background: linear-gradient(rgba(75, 12, 178, 0.0095), rgba(75, 12, 178, 0.032));

Selector drawings-community__text should be written in lowercase with hyphens
Open

.drawings-community__text {

Prefer single quoted strings
Open

@import "abstracts/mixins";

Prefer single quoted strings
Open

@import "sections/groups";

Prefer single quoted strings
Open

@import "sections/events";
Severity
Category
Status
Source
Language