Skip to content

Commit

Permalink
fix: --quiet option works for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Jan 27, 2023
1 parent a2b8ea3 commit 074c822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solhint.js
Original file line number Diff line number Diff line change
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 074c822

Please sign in to comment.