@zohodesk/codestandard-analytics
Advanced tools
Comparing version 0.0.1-exp-24 to 0.0.1-exp-25
@@ -34,7 +34,11 @@ "use strict"; | ||
try { | ||
return _path.default.resolve(rootPath, diff === null || diff === void 0 ? void 0 : diff.new_path); | ||
const pathOfFile = _path.default.resolve(rootPath, diff === null || diff === void 0 ? void 0 : diff.new_path); | ||
if ((0, _fileUtils.checkIfFileExists)(pathOfFile)) { | ||
return pathOfFile; | ||
} | ||
return undefined; | ||
} catch (error) { | ||
_logger.Logger.log(_logger.Logger.FAILURE_TYPE, ` file does not exist. make sure that branch upto date ...`); | ||
} | ||
}); | ||
}).filter(Boolean); | ||
return filterFiles(diffFiles); | ||
@@ -41,0 +45,0 @@ } |
@@ -105,2 +105,3 @@ "use strict"; | ||
} catch (err) { | ||
_logger.Logger.error(_logger.Logger.FAILURE_TYPE, `Error: ${err.message}`); | ||
_logger.Logger.log(_logger.Logger.FAILURE_TYPE, `Either Lint configuration not found or rule plugin are not installed ..`); | ||
@@ -107,0 +108,0 @@ process.exit(0); |
@@ -15,2 +15,3 @@ const path = require("path"); | ||
* @property {boolean} impactBasedPrecommit - Indicates if the linting is impact-based in pre commit | ||
* @property {boolean} shouldWarningsAbortCommit - Indicates if eslint warnings should abort the commit | ||
* @property {string} token - Encrypted Authentication Token | ||
@@ -33,2 +34,3 @@ * @property {string} compareBranch - Branch to compare diff | ||
impactBasedPrecommit:true, | ||
shouldWarningsAbortCommit: false, | ||
token:"w-OkG3f5OOM1Rkly8phZ", | ||
@@ -35,0 +37,0 @@ compareBranch:'release' |
{ | ||
"name": "@zohodesk/codestandard-analytics", | ||
"version": "0.0.1-exp-24", | ||
"version": "0.0.1-exp-25", | ||
"description": "linting tool", | ||
@@ -23,3 +23,3 @@ "dependencies": { | ||
"type": "git", | ||
"url": "https://zgit.csez.zohocorpin.com/zohodesk/internal-tools/lint_analysis.git" | ||
"url": "https://zgit.csez.zohocorpin.com/zohodesk/code_standard/client_linter/linter_tools.git" | ||
}, | ||
@@ -26,0 +26,0 @@ "bin": { |
742886
35
2367