Skip to content

Commit

Permalink
Get a formatting function when file from STDIN
Browse files Browse the repository at this point in the history
  • Loading branch information
area committed Oct 14, 2020
1 parent 3926cca commit 697fae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solhint.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function processStdin(options) {

const report = processStr(stdinBuffer.toString())
report.file = options.filename || 'stdin'
printReports([report])
const formatterFn = getFormatter()
printReports([report], formatterFn)
}

function writeSampleConfigFile() {
Expand Down

0 comments on commit 697fae1

Please sign in to comment.