Skip to content

Commit 17b05ba

Browse files
authored
Fix Reset terminal color after lint success/failure message (#6323) [ci fast]
Signed-off-by: Samuel Lampa <[email protected]>
1 parent 7e690b4 commit 17b05ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nextflow/src/main/groovy/nextflow/script/parser/v2/ErrorListener.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ class StandardErrorListener implements ErrorListener {
237237
term.newline()
238238
term.bold().a("Nextflow linting complete!").reset().newline()
239239
if( summary.filesWithErrors > 0 ) {
240-
term.fg(Ansi.Color.RED).a("${summary.filesWithErrors} file${summary.filesWithErrors==1 ? '' : 's'} had ${summary.errors} error${summary.errors==1 ? '' : 's'}").newline()
240+
term.fg(Ansi.Color.RED).a("${summary.filesWithErrors} file${summary.filesWithErrors==1 ? '' : 's'} had ${summary.errors} error${summary.errors==1 ? '' : 's'}").reset().newline()
241241
}
242242
if( summary.filesWithoutErrors > 0 ) {
243243
term.fg(Ansi.Color.GREEN).a("${summary.filesWithoutErrors} file${summary.filesWithoutErrors==1 ? '' : 's'} had no errors")
244244
if( summary.filesFormatted > 0 )
245245
term.fg(Ansi.Color.BLUE).a(" (${summary.filesFormatted} formatted)")
246-
term.newline()
246+
term.reset().newline()
247247
}
248248
if( summary.filesWithErrors == 0 && summary.filesWithoutErrors == 0 ) {
249249
term.a(" No files found to process").newline()

0 commit comments

Comments
 (0)