Showing 1,086 of 1,086 total issues
Use of !important Open
color: inherit !important;
- Exclude checks
Adjoining classes: .status-line.high Open
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.wrapper {
- Exclude checks
The property -ms-user-select is compatible with -moz-user-select and should be included as well. Open
.c3 text{-moz-user-select:none;user-select:none}
- Exclude checks
Adjoining classes: .c3-circle._expanded_ Open
.c3-circle._expanded_{stroke-width:1px;stroke:#fff}
- Exclude checks
Element (tr.result-error) is overqualified, just use .result-error without element name. Open
.table-services tr.result-error .result-uptime a{color:#d9534f}
- Exclude checks
Element (td.name) is overqualified, just use .name without element name. Open
.services-sidebar table td.name{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
- Exclude checks
Don't use process.exit(); throw an error instead. Open
return process.exit(RETURN_CODES.BAD_STORAGE);
- Read upRead up
- Exclude checks
Disallow process.exit() (no-process-exit)
The process.exit()
method in Node.js is used to immediately stop the Node.js process and exit. This is a dangerous operation because it can occur in any method at any point in time, potentially stopping a Node.js application completely when an error occurs. For example:
if (somethingBadHappened) {
console.error("Something bad happened!");
process.exit(1);
}
This code could appear in any module and will stop the entire application when somethingBadHappened
is truthy. This doesn't give the application any chance to respond to the error. It's usually better to throw an error and allow the application to handle it appropriately:
if (somethingBadHappened) {
throw new Error("Something bad happened!");
}
By throwing an error in this way, other parts of the application have an opportunity to handle the error rather than stopping the application altogether. If the error bubbles all the way up to the process without being handled, then the process will exit and a non-zero exit code will returned, so the end result is the same.
Rule Details
This rule aims to prevent the use of process.exit()
in Node.js JavaScript. As such, it warns whenever process.exit()
is found in code.
Examples of incorrect code for this rule:
/*eslint no-process-exit: "error"*/
process.exit(1);
process.exit(0);
Examples of correct code for this rule:
/*eslint no-process-exit: "error"*/
Process.exit();
var exit = process.exit;
When Not To Use It
There may be a part of a Node.js application that is responsible for determining the correct exit code to return upon exiting. In that case, you should turn this rule off to allow proper handling of the exit code. Source: http://eslint.org/docs/rules/
Rule doesn't have all its properties in alphabetical order. Open
.c3-circle._expanded_{stroke-width:1px;stroke:#fff}
- Exclude checks
Adjoining classes: .c3-bar._expanded_ Open
.c3-bar._expanded_{fill-opacity:.75}
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}
- Exclude checks
Element (tr.result-success) is overqualified, just use .result-success without element name. Open
.table-services tr.result-success .result-uptime a{color:green}
- Exclude checks
The universal selector (*) is known to be slow. Open
*,:after,:before{box-sizing:inherit}
- Exclude checks
Element (span.icon) is overqualified, just use .icon without element name. Open
.filter-container span.icon{position:absolute;left:10px;padding:10px 12px;pointer-events:none}
- Exclude checks
Element (div.filter-to-me) is overqualified, just use .filter-to-me without element name. Open
.filter-container div.filter-to-me{padding-top:5px}
- Exclude checks
The box-sizing property isn't supported in IE6 and IE7. Open
box-sizing:border-box;
- Exclude checks
Rule is empty. Open
.coverage-summary tfoot td { }
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.clearfix:after {
- Exclude checks
Element (span.cline-neutral) is overqualified, just use .cline-neutral without element name. Open
span.cline-neutral { background: #eaeaea; }
- Exclude checks