Showing 829 of 829 total issues
Prefer single quoted strings Open
Open
@import "bootstrap/buttons";
- Exclude checks
Color literals like rgb(185, 188, 194)
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
border: 1px solid rgb(185, 188, 194);
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
if controller.action_name == "buy" || controller.action_name == "rent"
- 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"
Properties should be ordered float, margin, margin-right Open
Open
margin: 7px;
- 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
Prefer single quoted strings Open
Open
@import "bootstrap/modals";
- Exclude checks
Color white
should be written in hexadecimal form as #ffffff
Open
Open
background: white;
- Exclude checks
Space inside string interpolation detected. Open
Open
notice: "You unfavorited #{ @property.category } at #{ @property.street }"
- Read upRead up
- Exclude checks
This cop checks for whitespace within string interpolations.
Example: EnforcedStyle: no_space (default)
# bad
var = "This is the #{ space } example"
# good
var = "This is the #{no_space} example"
Example: EnforcedStyle: space
# bad
var = "This is the #{no_space} example"
# good
var = "This is the #{ space } example"
Color green
should be written in hexadecimal form as #008000
Open
Open
color: green;
- Exclude checks
Properties should be ordered height, margin-left, margin-top, width Open
Open
margin-top: 10px;
- Exclude checks
Shorthand form for property padding
should be written more concisely as 20px 0px 30px
instead of 20px 0px 30px 0px
Open
Open
padding: 20px 0px 30px 0px;
- Exclude checks
Line is too long. [84/80] Open
Open
before_filter :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
- Exclude checks
Each selector in a comma sequence should be on its own single line Open
Open
#search-query-head span, #search-filter-head span {
- Exclude checks
Line should be indented 2 spaces, but was indented 3 spaces Open
Open
#search_query {
- Exclude checks
Nesting should be no greater than 3, but was 4 Open
Open
&:hover, &:active {
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
Open
notice: 'Property listing is already on the compare list'
- Read upRead up
- Exclude checks
Here we check if the parameters on a multi-line method call or definition are aligned.
Example: EnforcedStyle: withfirstparameter (default)
# good
foo :bar,
:baz
# bad
foo :bar,
:baz
Example: EnforcedStyle: withfixedindentation
# good
foo :bar,
:baz
# bad
foo :bar,
:baz
Colon after property should be followed by one space Open
Open
display:inline-block;
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
Open
notice: 'You should add a listing to compare list'
- Read upRead up
- Exclude checks
Here we check if the parameters on a multi-line method call or definition are aligned.
Example: EnforcedStyle: withfirstparameter (default)
# good
foo :bar,
:baz
# bad
foo :bar,
:baz
Example: EnforcedStyle: withfixedindentation
# good
foo :bar,
:baz
# bad
foo :bar,
:baz
Avoid qualifying class selectors with an element. Open
Open
input.btn {
- Exclude checks
Color literals like rgba(255, 255, 255, 0.7)
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.7);
- Exclude checks