Showing 1,727 of 1,727 total issues
Prefer single quoted strings Open
Open
@import "leaflet/dist/leaflet";
- Exclude checks
!important should not be used Open
Open
border-bottom: 3px solid $indigo !important;
- Exclude checks
!important should not be used Open
Open
border-top-right-radius: $box-radius !important;
- Exclude checks
Properties should be ordered border-bottom-left-radius, border-top-right-radius Open
Open
border-top-right-radius: 0;
- Exclude checks
Avoid qualifying class selectors with an element. Open
Open
a.box-title:hover {
- Exclude checks
Color literals like #E0E8F0
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: darken(#E0E8F0, 8%);
- Exclude checks
Color literals like #3BB662
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: #3BB662;
- Exclude checks
Color literals like #E75448
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: #E75448;
- Exclude checks
Selector field_with_errors
should be written in lowercase with hyphens Open
Open
.field_with_errors {
- Exclude checks
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
color: #fff;
- Exclude checks
Selector event-box__address
should be written in lowercase with hyphens Open
Open
.event-box__address {
- Exclude checks
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
Open
padding: 2rem 2.5rem 2.6rem 2.5rem;
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
default from: "info@prevy.herokuapp.com"
- Read upRead up
- Exclude checks
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
Open
class SupportMailer < ApplicationMailer
- Read upRead up
- Exclude checks
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
Open
default from: "support@prevy.herokuapp.com"
- Read upRead up
- Exclude checks
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
Open
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
- Exclude checks
Extra blank line detected. Open
Open
# puts "\n== Copying sample files =="
- Read upRead up
- Exclude checks
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
Open
border-bottom-left-radius: calc(#{$box-radius} - 2px) !important;
- Exclude checks
0.5
should be written without a leading zero as .5
Open
Open
padding: 0.9rem 0.5rem;
- Exclude checks
Color literals like white
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
color: white;
- Exclude checks