@zohodesk/codestandard-analytics
Advanced tools
Comparing version 0.0.1-exp-25 to 0.0.1-exp-26
@@ -35,17 +35,6 @@ "use strict"; | ||
if (message["severity"] == 2) { | ||
global.analytics.reportStatus = false; | ||
global.analytics.pipelineStatus = "failed"; | ||
global.analytics.status = "FAILURE"; | ||
} | ||
return true; | ||
} | ||
// const eslintErrorLineNumber = message.line | ||
// const { _changedLinesStartArray, _changedLinesEndArray} = impactedLines | ||
// for(var lineNumber in _changedLinesStartArray){ | ||
// if(eslintErrorLineNumber >= _changedLinesStartArray[lineNumber] && | ||
// eslintErrorLineNumber <= _changedLinesEndArray[lineNumber]){ | ||
// // To set pipeline status | ||
// message["severity"] == 2 ? (global.analytics.reportStatus = false) : null; | ||
// return true; | ||
// } | ||
// } | ||
return false; | ||
@@ -52,0 +41,0 @@ }); |
@@ -109,2 +109,3 @@ "use strict"; | ||
} | ||
/** | ||
@@ -111,0 +112,0 @@ * @function getGitUsername - get username from git |
@@ -51,3 +51,3 @@ "use strict"; | ||
code === 0 ? _logger.Logger.cliLog(_logger.Logger.PATH_TYPE, `\n Report URL - ${(0, _sonarReportSummary.getSummaryOfLint)(cliParams).reportUrl}`) : null; | ||
global.analytics.reportStatus ? _logger.Logger.cliLog(_logger.Logger.INFO_TYPE, `\n JSON report Path - ${(0, _getFileUtils.getLintReportPath)()}`) : null; | ||
_logger.Logger.cliLog(_logger.Logger.INFO_TYPE, `\n JSON report Path - ${(0, _getFileUtils.getLintReportPath)()}`); | ||
code === 0 ? _logger.Logger.cliLog(_logger.Logger.INFO_TYPE, `\n SonarQube Artifacts Path - ${(0, _getSonarProperties.getSonarArtifactsDir)()}`) : null; | ||
@@ -54,0 +54,0 @@ env == 'ci' && cliParams.cmdExecuted == "lint-ci" || cliParams.cmdExecuted == "dev-ci" ? (0, _getFileUtils.removeFile)(branchDiffPath) && (0, _getFileUtils.removeFile)((0, _requestUtils.getExemptionFileInfoPath)()) : null; |
@@ -41,4 +41,4 @@ "use strict"; | ||
return { | ||
reportStatus: true, | ||
pipelineStatus: 'passed' | ||
status: "SUCCESS", | ||
sonarQubeStatus: true | ||
}; | ||
@@ -60,5 +60,5 @@ } | ||
(0, _fileUtils.writeFileContents)(_path.default.resolve(process.cwd(), "lint-report", "lint-summary.json"), JSON.stringify({ | ||
...getSummaryOfLint(cliParams), | ||
...getLintStatus(impactBased) | ||
...getLintStatus(impactBased), | ||
...getSummaryOfLint(cliParams) | ||
})); | ||
} |
@@ -22,4 +22,3 @@ "use strict"; | ||
global.analytics = { | ||
reportStatus: true, | ||
pipelineStatus: "passed", | ||
status: "SUCCESS", | ||
sonarQubeStatus: false | ||
@@ -26,0 +25,0 @@ }; |
{ | ||
"name": "@zohodesk/codestandard-analytics", | ||
"version": "0.0.1-exp-25", | ||
"version": "0.0.1-exp-26", | ||
"description": "linting tool", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
742233
2355