Skip to content

Commit

Permalink
Merge pull request #392 from protofire/fix/quiet-option-to-all-files
Browse files Browse the repository at this point in the history
fix: --quiet option works for all files
  • Loading branch information
dbale-altoros committed Feb 7, 2023
2 parents 93b28e2 + 074c822 commit 735dd49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solhint.js
Expand Up @@ -87,7 +87,9 @@ function execMainAction() {

if (program.opts().quiet) {
// filter the list of reports, to set errors only.
reports[0].reports = reports[0].reports.filter((i) => i.severity === 2)
reports.forEach((reporter) => {
reporter.reports = reporter.reports.filter((i) => i.severity === 2)
})
}

if (printReports(reports, formatterFn)) {
Expand Down

0 comments on commit 735dd49

Please sign in to comment.