consul/consul

View on GitHub

Showing 2,522 of 2,522 total issues

Prefer single quoted strings
Open

       font-url("lato-bold.woff") format("woff"),
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

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

  $spacing: $line-height * 0.5;

Prefer single quoted strings
Open

       font-url("lato-bold.svg#latobold") format("svg");
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Selector should have depth of applicability no greater than 3, but was 4
Open

      .investment-project-info {

Prefer single quoted strings
Open

@import "consul_custom_overrides";

Prefer single quoted strings
Open

  content: "\f02b";
Severity: Minor
Found in app/assets/stylesheets/icons.scss by scss-lint

Prefer single quoted strings
Open

  content: "\f15b";
Severity: Minor
Found in app/assets/stylesheets/icons.scss by scss-lint

Color literals like #e7eaec should only be used in variable declarations; they should be referred to via variable everywhere else.
Open

    background: #e7eaec;

Prefer single quoted strings
Open

  content: "\f00b";
Severity: Minor
Found in app/assets/stylesheets/icons.scss by scss-lint

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

      box-shadow: -16px 61px 49px -19px rgba(0, 0, 0, 0.1);

Nesting should be no greater than 3, but was 4
Open

      img {

!important should not be used
Open

    float: right !important;

Nesting should be no greater than 3, but was 4
Open

      img {

Properties should be ordered color, line-height, text-align
Open

      text-align: center;

Prefer single quoted strings
Open

       font-url("sourcesanspro-light-webfont.ttf") format("truetype"),
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Prefer single quoted strings
Open

  src: font-url("sourcesanspro-regular-webfont.eot?#iefix") format("embedded-opentype"),
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Prefer single quoted strings
Open

       font-url("sourcesanspro-regular-webfont.woff2") format("woff2"),
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Prefer single quoted strings
Open

  font-family: "Source Sans Pro";
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Prefer single quoted strings
Open

  font-family: "Oswald";
Severity: Minor
Found in app/assets/stylesheets/fonts.scss by scss-lint

Specify a :dependent option. (https://rails.rubystyle.guide#has_many-has_one-dependent-option)
Open

  has_many :comments, as: :commentable, inverse_of: :commentable
Severity: Minor
Found in app/models/poll/question.rb by rubocop

This cop looks for has_many or has_one associations that don't specify a :dependent option. It doesn't register an offense if :through option was specified.

Example:

# bad
class User < ActiveRecord::Base
  has_many :comments
  has_one :avatar
end

# good
class User < ActiveRecord::Base
  has_many :comments, dependent: :restrict_with_exception
  has_one :avatar, dependent: :destroy
  has_many :patients, through: :appointments
end
Severity
Category
Status
Source
Language