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 2008220
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 155 deletions.
56 changes: 0 additions & 56 deletions lib/cli.js
Expand Up @@ -2,7 +2,6 @@

const chalk = require('chalk');
const checkInvalidCLIOptions = require('./utils/checkInvalidCLIOptions');
const disableOptionsReportStringFormatter = require('./formatters/disableOptionsReportStringFormatter');
const EOL = require('os').EOL;
const getFormatterOptionsText = require('./utils/getFormatterOptionsText');
const getModulePath = require('./utils/getModulePath');
Expand Down Expand Up @@ -495,61 +494,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

This file was deleted.

47 changes: 0 additions & 47 deletions lib/formatters/disableOptionsReportStringFormatter.js

This file was deleted.

0 comments on commit 2008220

Please sign in to comment.