Skip to content

Commit

Permalink
altera saida
Browse files Browse the repository at this point in the history
  • Loading branch information
katiacih committed Jul 31, 2023
1 parent a9c137d commit 21d1ad3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/index.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12751,17 +12751,17 @@ module.exports = {
const { searchFilesXml, loadFile, searchJSONfiles } = __nccwpck_require__(5224)
const { parserXmlToObject } = __nccwpck_require__(5984)

const DetektReportPath = 'app/build/reports/detekt'
/**
* @example getDetektReport()
* @return {string}
*/
function getDetektReport() {

const detektReportPath = 'app/build/reports/detekt'
const files = getCheckstylesFiles([detektReportPath])
const files = getCheckstylesFiles([DetektReportPath])

const detektReport = files.map((file) => {
return buildCheckstyleObject(detektReportPath, file.files)
return buildCheckstyleObject(DetektReportPath, file.files)
}).reduce((acc, val) => acc.concat(val), [])
return detektReport
// return JSON.stringify(detektReport)
Expand Down Expand Up @@ -13077,7 +13077,7 @@ function runDetekt() {
console.log(`Version: ${report[0].version}`)
console.log('Verifique os erros abaixo:')

console.table(report[0].file)
// console.table(report[0].file)
return report
})

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function runDetekt() {
console.log(`Version: ${report[0].version}`)
console.log('Verifique os erros abaixo:')

console.table(report[0].file)
// console.table(report[0].file)
return report
})

Expand Down
6 changes: 3 additions & 3 deletions src/controller/linterManager.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
const { searchFilesXml, loadFile, searchJSONfiles } = require('../controller/fileManager')
const { parserXmlToObject } = require('../controller/xmlParser')

const DetektReportPath = 'app/build/reports/detekt'
/**
* @example getDetektReport()
* @return {string}
*/
function getDetektReport() {

const detektReportPath = 'app/build/reports/detekt'
const files = getCheckstylesFiles([detektReportPath])
const files = getCheckstylesFiles([DetektReportPath])

const detektReport = files.map((file) => {
return buildCheckstyleObject(detektReportPath, file.files)
return buildCheckstyleObject(DetektReportPath, file.files)
}).reduce((acc, val) => acc.concat(val), [])
return detektReport
// return JSON.stringify(detektReport)
Expand Down

0 comments on commit 21d1ad3

Please sign in to comment.