@zohodesk/codestandard-analytics
Advanced tools
Comparing version 0.0.1-exp-23 to 0.0.1-exp-24
@@ -199,8 +199,10 @@ "use strict"; | ||
} | ||
return actualFiles.filter(file => { | ||
if (exemptionFiles.includes(file)) { | ||
return false; | ||
} | ||
return true; | ||
return actualFiles.filter(filePath => { | ||
const relativePath = _path.default.relative(process.cwd(), filePath); | ||
return !exemptionFiles.includes(relativePath); | ||
// if(exemptionFiles.includes(file)){ | ||
// return false | ||
// } | ||
// return true | ||
}); | ||
} |
@@ -25,3 +25,3 @@ "use strict"; | ||
async function executeLintAnalysis(cliParams) { | ||
_logger.Logger.start('Start linting ...'); | ||
_logger.Logger.cliLog("success", '\n Start linting ...'); | ||
var { | ||
@@ -49,4 +49,3 @@ env, | ||
const filteredLintReport = await startLint(branch_diff_json, JsFiles, env, impactBased, ruleConfigurationPath); | ||
_logger.Logger.stop(); | ||
_logger.Logger.cliLog(_logger.Logger.SUCCESS_TYPE, `Linting analysis completed successfully...`); | ||
_logger.Logger.cliLog(_logger.Logger.SUCCESS_TYPE, `\n Linting analysis completed successfully...`); | ||
(0, _fileUtils.writeFileContents)(reportPath, JSON.stringify(filteredLintReport)); | ||
@@ -53,0 +52,0 @@ } |
@@ -30,3 +30,3 @@ "use strict"; | ||
const child_process = (0, _child_process.spawn)("java", command); | ||
_logger.Logger.start('Sending report to SonarQube ...'); | ||
_logger.Logger.cliLog("success", "\n Sending report to SonarQube ..."); | ||
child_process.stdout.on("data", data => { | ||
@@ -48,3 +48,2 @@ _logger.Logger.emit(data); | ||
code === 0 ? global.analytics.sonarQubeStatus = true : null; | ||
_logger.Logger.stop(); | ||
(0, _sonarReportSummary.writeSummaryOfLint)(cliParams); | ||
@@ -51,0 +50,0 @@ _logger.Logger.cliLog(_logger.Logger.SUCCESS_TYPE, '\n SonarQube analysis completed...'); |
@@ -93,5 +93,4 @@ "use strict"; | ||
cliLog(type, message) { | ||
const consolePrefix = type === "success" ? `✔` : type === "failure" ? `✘` : ""; | ||
const color = this.cliColors[type]; | ||
this.consoleLogger.log(color(`${consolePrefix} ${message}`)); | ||
const _console = type === "success" ? _chalk.default.white.green.bold : type === "failure" ? _chalk.default.white.green.bold : _chalk.default.white.bold; | ||
this.consoleLogger.log(_console(`${message}`)); | ||
} | ||
@@ -98,0 +97,0 @@ |
{ | ||
"name": "@zohodesk/codestandard-analytics", | ||
"version": "0.0.1-exp-23", | ||
"version": "0.0.1-exp-24", | ||
"description": "linting tool", | ||
"dependencies": { | ||
"eslint": "8.57.0", | ||
"@babel/runtime": "7.25.7" | ||
"@babel/runtime": "7.25.7", | ||
"chalk": "4.1.2", | ||
"commander": "11.1.0" | ||
}, | ||
@@ -13,4 +15,2 @@ "devDependencies": { | ||
"@babel/preset-env": "7.24.3", | ||
"chalk": "4.1.0", | ||
"commander": "11.1.0", | ||
"prettier": "3.2.5" | ||
@@ -17,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
743562
4
36
2388
4
+ Addedchalk@4.1.2
+ Addedcommander@11.1.0
+ Addedcommander@11.1.0(transitive)