Skip to content

Commit

Permalink
Remove unused disable-reporting code
Browse files Browse the repository at this point in the history
This was outmoded by #4973
  • Loading branch information
nex3 committed Feb 4, 2021
1 parent ef26ca8 commit 410eb59
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions lib/cli.js
Expand Up @@ -495,61 +495,6 @@ module.exports = (argv) => {

return standalone(options)
.then((linted) => {
const reports = [];

const report = disableOptionsReportStringFormatter(
linted.reportedDisables || [],
'forbidden disable',
);

if (report) reports.push(report);

if (reportNeedlessDisables) {
// TODO: Issue #4985
// eslint-disable-next-line no-shadow
const report = disableOptionsReportStringFormatter(
linted.needlessDisables || [],
'needless disable',
);

if (report) {
reports.push(report);
}
}

if (reportInvalidScopeDisables) {
// TODO: Issue #4985
// eslint-disable-next-line no-shadow
const report = disableOptionsReportStringFormatter(
linted.invalidScopeDisables || [],
'disable with invalid scope',
);

if (report) {
reports.push(report);
}
}

if (reportDescriptionlessDisables) {
// TODO: Issue #4985
// eslint-disable-next-line no-shadow
const report = disableOptionsReportStringFormatter(
linted.descriptionlessDisables || [],
'descriptionless disable',
);

if (report) {
reports.push(report);
}
}

if (reports.length > 0) {
// TODO: Issue #4985
// eslint-disable-next-line no-shadow
reports.forEach((report) => process.stdout.write(report));
process.exitCode = EXIT_CODE_ERROR;
}

if (!linted.output) {
return;
}
Expand Down

0 comments on commit 410eb59

Please sign in to comment.