georgebellos/real_estate

View on GitHub

Showing 829 of 829 total issues

Avoid using id selectors
Open

#search-query-head span, #search-filter-head span {

Avoid using id selectors
Open

  #copyright {

Colon after property should be followed by one space
Open

    background:#fff;

0px should be written without units as 0
Open

  margin: 0px;

0.7 should be written without a leading zero as .7
Open

    background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.7);

Rule declaration should be preceded by an empty line
Open

    a {

Avoid using id selectors
Open

#logo {

Properties should be ordered background-color, color, float, font-size, margin-bottom, opacity, padding, position, right, text-align, top
Open

    font-size: 0.9em;

Rule declaration should be followed by an empty line
Open

  }

Line is too long. [105/80]
Open

      content_tag(:div, "Found #{ properties.total_count } property listings with this search criteria'",
Severity: Minor
Found in app/helpers/properties_helper.rb by rubocop

Color literals like rgba(42, 43, 43, 0.9) should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

    background-color: rgba(42, 43, 43, 0.9);

0.2 should be written without a leading zero as .2
Open

    margin-bottom: 0.2em;

Properties should be ordered margin-top, padding, width
Open

    padding: 10px;

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

    margin-bottom: 0.5em;

0px should be written without units as 0
Open

    padding: 0px 5px;

Rule declaration should be followed by an empty line
Open

  }

Properties should be ordered border-color, border-style, border-width, -moz-box-shadow, -webkit-box-shadow, box-shadow, padding
Open

    padding: 6px;

Line is too long. [84/80]
Open

      content_tag(:div, "No property listings were found with this search criteria",
Severity: Minor
Found in app/helpers/properties_helper.rb by rubocop

Color literals like rgb(42, 43, 43) should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

  border-top: 4px solid rgb(42, 43, 43);

Use 2 (not 1) spaces for indentation.
Open

   current_user.favorites = []

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end
Severity
Category
Status
Source
Language