Showing 1,727 of 1,727 total issues
Properties should be ordered border-bottom, right Open
Open
right: 15px;
- Exclude checks
Color literals like #6610f2
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
border-bottom: 3px solid #6610f2;
- Exclude checks
Property background-size
already defined on line 156 Open
Open
background-size: 8px 10px;
- Exclude checks
Selector sign-up-box__label
should be written in lowercase with hyphens Open
Open
.sign-up-box__label {
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
Open
unless value =~ VALID_EMAIL_REGEX
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression
Example:
# bad
def test
if something
work
end
end
# good
def test
return unless something
work
end
# also good
def test
work if something
end
# bad
if something
raise 'exception'
else
ok
end
# good
raise 'exception' if something
ok
Inconsistent indentation detected. Open
Open
def application_name
Rails.application.class.parent_name.underscore
end
- Read upRead up
- Exclude checks
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
Open
cloudinary_transformation quality: "auto"
- 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"
Redundant begin
block detected. Open
Open
begin
- Read upRead up
- Exclude checks
This cop checks for redundant begin
blocks.
Currently it checks for code like this:
Example:
def redundant
begin
ala
bala
rescue StandardError => e
something
end
end
def preferred
ala
bala
rescue StandardError => e
something
end
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
$stderr.puts "Yarn executable was not detected in the system."
- 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"
Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem capybara-screenshot
should appear before capybara-webkit
. Open
Open
gem 'capybara-screenshot', '~> 1.0', '>= 1.0.18'
- Read upRead up
- Exclude checks
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
Open
border-radius: 100% !important;
- Exclude checks
Selector box-image__img
should be written in lowercase with hyphens Open
Open
.box-image__img {
- Exclude checks
!important should not be used Open
Open
flex: 0 !important;
- Exclude checks
Properties should be ordered background-color, padding Open
Open
padding: 0 7px 0 7px;
- Exclude checks
Properties should be ordered border-color, color Open
Open
color: white;
- Exclude checks
Color literals like rgba(white, 0.5)
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
border-color: rgba(white, .5);
- Exclude checks
!important should not be used Open
Open
border-top-left-radius: $box-radius !important;
- Exclude checks
!important should not be used Open
Open
border-bottom-left-radius: $box-radius !important;
- Exclude checks
Color literals like #495057
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
color: #495057;
- Exclude checks
Properties should be ordered color, font-size Open
Open
font-size: 1.25rem;
- Exclude checks