diff --git a/dist/index.js/index.js b/dist/index.js/index.js index b709ae6..b1ba0d7 100644 --- a/dist/index.js/index.js +++ b/dist/index.js/index.js @@ -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) @@ -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 }) diff --git a/index.js b/index.js index 783a644..6f58f5d 100644 --- a/index.js +++ b/index.js @@ -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 }) diff --git a/src/controller/linterManager.js b/src/controller/linterManager.js index f184872..c6cc222 100644 --- a/src/controller/linterManager.js +++ b/src/controller/linterManager.js @@ -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)