codeforamerica/ohana-web-search

View on GitHub

Showing 2,141 of 2,141 total issues

Properties should be ordered margin-left, padding-left
Open

      padding-left: 20px;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Properties should be ordered border-bottom, height
Open

  height: 150px;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Properties should be ordered border-bottom, color, text-decoration
Open

      color: $primary-dark;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Name of variable greyscale_midtone should be written in all lowercase letters with hyphens instead of underscores
Open

      border-bottom: 1px solid $greyscale_midtone;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Name of variable font_size_90 should be written in all lowercase letters with hyphens instead of underscores
Open

      font-size: $font_size_90;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Name of variable font_size_120 should be written in all lowercase letters with hyphens instead of underscores
Open

      font-size: $font_size_120;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Expected item on line 1039 to appear before line 1038. Rule sets should be ordered as follows: @extends, @includes without @content, properties, @includes with @content, nested rule sets
Open

        @include type-size(baseline);
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

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

        h1 {
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Line should be indented 2 spaces, but was indented 4 spaces
Open

    border-top: 1px solid #ccc;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Line should be indented 2 spaces, but was indented 4 spaces
Open

    padding: 0;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Properties should be ordered font-weight, margin, padding
Open

  margin: 0;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Properties should be ordered font-size, position, top, vertical-align
Open

  vertical-align: baseline;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Line should be indented 6 spaces, but was indented 8 spaces
Open

        @include inline-block();
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Expected item on line 233 to appear before line 231. Rule sets should be ordered as follows: @extends, @includes without @content, properties, @includes with @content, nested rule sets
Open

    @include inline-block();
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Expected variable declaration to be on a new line.
Open

        var oldLeft = el.style.left, oldRsLeft = el.runtimeStyle.left;
Severity: Minor
Found in app/javascript/app/util/util.js by eslint

require or disallow newlines around variable declarations (one-var-declaration-per-line)

Some developers declare multiple var statements on the same line:

var foo, bar, baz;

Others prefer to declare one var per line.

var foo,
    bar,
    baz;

Keeping to one of these styles across a project's codebase can help with maintaining code consistency.

Rule Details

This rule enforces a consistent newlines around variable declarations. This rule ignores variable declarations inside for loop conditionals.

Options

This rule has a single string option:

  • "initializations" (default) enforces a newline around variable initializations
  • "always" enforces a newline around variable declarations

initializations

Examples of incorrect code for this rule with the default "initializations" option:

/*eslint one-var-declaration-per-line: ["error", "initializations"]*/
/*eslint-env es6*/

var a, b, c = 0;

let a,
    b = 0, c;

Examples of correct code for this rule with the default "initializations" option:

/*eslint one-var-declaration-per-line: ["error", "initializations"]*/
/*eslint-env es6*/

var a, b;

let a,
    b;

let a,
    b = 0;

always

Examples of incorrect code for this rule with the "always" option:

/*eslint one-var-declaration-per-line: ["error", "always"]*/
/*eslint-env es6*/

var a, b;

let a, b = 0;

const a = 0, b = 0;

Examples of correct code for this rule with the "always" option:

/*eslint one-var-declaration-per-line: ["error", "always"]*/
/*eslint-env es6*/

var a,
    b;

let a,
    b = 0;

Related Rules

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

  h1 {
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Properties should be ordered border-top, font-size, margin-top, padding-top
Open

    margin-top: 10px;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Name of variable accentA-dark should be written in all lowercase letters with hyphens instead of underscores
Open

    border: 1px solid $accentA-dark;
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

0.9 should be written without a leading zero as .9
Open

  background: rgba($search-bg, 0.9);
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint

Avoid using id selectors
Open

.home #search-bottom-utilities {
Severity: Minor
Found in app/assets/stylesheets/_base.scss by scss-lint
Severity
Category
Status
Source
Language