Showing 490 of 490 total issues

Values of 0 shouldn't have units specified.
Open

    margin: 10px 0px;
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Values of 0 shouldn't have units specified.
Open

.pyff-idp-icon { max-height: 64px; max-width: 64px; margin-right: 10%; padding-right: 2px; margin-top: 0%; width: auto; }
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.sp-thumbnail {width: 100px; margin: 0 0; padding-left: 5px;}
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Using width with padding-left can sometimes make elements larger than you expect.
Open

.sp-thumbnail {width: 100px; margin: 0 0; padding-left: 5px;}
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.
Open

  for(var i in input)
Severity: Minor
Found in src/pyff/site/static/js/sha1.js by eslint

Require Guarding for-in (guard-for-in)

Looping over objects with a for in loop will include properties that are inherited through the prototype chain. This behavior can lead to unexpected items in your for loop.

for (key in foo) {
    doSomething(key);
}

Note that simply checking foo.hasOwnProperty(key) is likely to cause an error in some cases; see [no-prototype-builtins](no-prototype-builtins.md).

Rule Details

This rule is aimed at preventing unexpected behavior that could arise from using a for in loop without filtering the results in the loop. As such, it will warn when for in loops do not filter their results with an if statement.

Examples of incorrect code for this rule:

/*eslint guard-for-in: "error"*/

for (key in foo) {
    doSomething(key);
}

Examples of correct code for this rule:

/*eslint guard-for-in: "error"*/

for (key in foo) {
    if (Object.prototype.hasOwnProperty.call(foo, key)) {
        doSomething(key);
    }
    if ({}.hasOwnProperty.call(foo, key)) {
        doSomething(key);
    }
}

Related Rules

  • [no-prototype-builtins](no-prototype-builtins.md)

Further Reading

Rule doesn't have all its properties in alphabetical order.
Open

.card-deck .card {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.card-links a li.known-inst {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.card-header {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Element (h3.searching) is overqualified, just use .searching without element name.
Open

h3.searching {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Heading (h3) should not be qualified.
Open

.header h3 {
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.footer {
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Expected (<length> | <percentage> | <content-sizing> | auto) but found 'device-width'.</content-sizing></percentage></length>
Open

@viewport           { width: device-width; }
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Don't use IDs in selectors.
Open

#map_canvas { width: 100%; height: 350px; }
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

#map_canvas { width: 100%; height: 350px; }
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Don't use IDs in selectors.
Open

#sp-title-container {
Severity: Minor
Found in src/pyff/site/static/css/style.css by csslint

Values of 0 shouldn't have units specified.
Open

    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Heading (h2) should not be qualified.
Open

footer h2 {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

footer p {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.subtitleRA21{
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.label-url {
Severity: Minor
Found in src/pyff/site/static/css/ra21.css by csslint
Severity
Category
Status
Source
Language