Showing 829 of 829 total issues
Prefer single quoted strings Open
Open
@import "globals/colors";
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
desc "Clean out temp CarrierWave files"
- 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"
Color literals like rgb(42, 43, 43)
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
color: rgb(42, 43, 43);
- Exclude checks
Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem pry-rails
should appear before rb-inotify
. Open
Open
gem 'pry-rails', '~> 0.3.0'
- 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'
0px
should be written without units as 0
Open
Open
padding: 0px 5px;
- Exclude checks
Shorthand form for property margin
should be written more concisely as 10px auto 30px
instead of 10px auto 30px auto
Open
Open
margin: 10px auto 30px auto;
- Exclude checks
Color white
should be written in hexadecimal form as #ffffff
Open
Open
$body-bg: white;
- Exclude checks
Avoid vendor prefixes. Open
Open
-webkit-box-sizing: border-box;
- Exclude checks
0px
should be written without units as 0
Open
Open
@include box-shadow(0px 1px 6px #bbb);
- Exclude checks
Color literals like #ccc
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
border-color: #ccc #ccc #999 #ccc;
- Exclude checks
Color literals like #bbb
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
@include box-shadow(0px 1px 6px #bbb);
- Exclude checks
Color literals like #676767
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
color: #676767;
- Exclude checks
0.5
should be written without a leading zero as .5
Open
Open
-webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
- Exclude checks
Use //
comments everywhere Open
Open
/*** Mixins ***/
- Exclude checks
Use //
comments everywhere Open
Open
/*** Bootstrap Theming ***/
- Exclude checks
0.5
should be written without a leading zero as .5
Open
Open
-moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
- Exclude checks
Use //
comments everywhere Open
Open
/*** Compass ***/
- Exclude checks
!important should not be used Open
Open
height: auto !important;
- Exclude checks
Selector gmaps4rails_map
should be written in lowercase with hyphens Open
Open
.gmaps4rails_map {
- Exclude checks
Color black
should be written in hexadecimal form as #000000
Open
Open
background-color: black;
- Exclude checks