lujanfernaud/prevy

View on GitHub

Showing 1,727 of 1,727 total issues

Prefer single quoted strings
Open

@import "leaflet/dist/leaflet";

!important should not be used
Open

  border-bottom: 3px solid $indigo !important;

!important should not be used
Open

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

Properties should be ordered border-bottom-left-radius, border-top-right-radius
Open

    border-top-right-radius: 0;

Avoid qualifying class selectors with an element.
Open

a.box-title:hover {

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

  background: darken(#E0E8F0, 8%);

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

  background: #3BB662;

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

  background: #E75448;

Selector field_with_errors should be written in lowercase with hyphens
Open

.field_with_errors {

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

    color: #fff;

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

.event-box__address {

Shorthand form for property padding should be written more concisely as 2rem 2.5rem 2.6rem instead of 2rem 2.5rem 2.6rem 2.5rem
Open

    padding: 2rem 2.5rem 2.6rem 2.5rem;

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

  default from: "info@prevy.herokuapp.com"
Severity: Minor
Found in app/mailers/application_mailer.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"

Missing top-level class documentation comment.
Open

class SupportMailer < ApplicationMailer
Severity: Minor
Found in app/mailers/support_mailer.rb by rubocop

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

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

  default from: "support@prevy.herokuapp.com"
Severity: Minor
Found in app/mailers/support_mailer.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"

Line is too long. [90/80]
Open

# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
Severity: Minor
Found in Rakefile by rubocop

Extra blank line detected.
Open


  # puts "\n== Copying sample files =="
Severity: Minor
Found in bin/setup by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

!important should not be used
Open

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

0.5 should be written without a leading zero as .5
Open

    padding: 0.9rem 0.5rem;

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

  color: white;
Severity
Category
Status
Source
Language