Skip to content

Commit

Permalink
refactor: concatena resultado
Browse files Browse the repository at this point in the history
  • Loading branch information
katiacih committed Jul 31, 2023
1 parent 05053ea commit 861553d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dist/index.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13076,8 +13076,13 @@ function runDetekt() {
core.notice(`\u001b[32;5;6m 🚀 Processo concluído verifique abaixo os erros reportados ${JSON.stringify(report)}`)
console.log(`Version: ${report[0].version}`)
console.log('Verifique os erros abaixo:')

console.table(report)
if(report.length > 0 && report[0].file.length > 0) {
report[0].file.forEach((element) => {
console.log(`Arquivo: ${element.name}`)
console.table(element.error)
})
}

return report
})

Expand Down
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ function runDetekt() {
core.notice(`\u001b[32;5;6m 🚀 Processo concluído verifique abaixo os erros reportados ${JSON.stringify(report)}`)
console.log(`Version: ${report[0].version}`)
console.log('Verifique os erros abaixo:')

console.table(report)
if(report.length > 0 && report[0].file.length > 0) {
report[0].file.forEach((element) => {
console.log(`Arquivo: ${element.name}`)
console.table(element.error)
})
}

return report
})

Expand Down

0 comments on commit 861553d

Please sign in to comment.