Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zohodesk/codestandard-analytics

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zohodesk/codestandard-analytics - npm Package Compare versions

Comparing version 0.0.1-exp-23 to 0.0.1-exp-24

index.js

12

build/core/eslint/getFileUtils.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc