Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jul 2, 2023
1 parent 41d5181 commit 2d3a3ab
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 306 deletions.
2 changes: 1 addition & 1 deletion analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getAllFiles = (dir, extn, files, result, regex) => {
if (IGNORE_FILE_PATTERN.test(files[i])) {
continue;
}
let file = join(dir, files[i]);
const file = join(dir, files[i]);
if (statSync(file).isDirectory()) {
// Ignore directories
const dirName = basename(file);
Expand Down
6 changes: 3 additions & 3 deletions bin/cdxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if (process.env.GLOBAL_AGENT_HTTP_PROXY || process.env.HTTP_PROXY) {
globalAgent.bootstrap();
}

let filePath = args._[0] || ".";
const filePath = args._[0] || ".";
if (!args.projectName) {
if (filePath !== ".") {
args.projectName = basename(filePath);
Expand All @@ -143,7 +143,7 @@ if (!args.projectName) {
* projectType: python, nodejs, java, golang
* multiProject: Boolean to indicate monorepo or multi-module projects
*/
let options = {
const options = {
projectType: args.type,
multiProject: args.recurse,
output: args.output,
Expand Down Expand Up @@ -353,7 +353,7 @@ const checkPermissions = (filePath) => {

if (args.print && bomNSData.bomJson && bomNSData.bomJson.components) {
const data = [["Group", "Name", "Version", "Scope"]];
for (let comp of bomNSData.bomJson.components) {
for (const comp of bomNSData.bomJson.components) {
data.push([comp.group || "", comp.name, comp.version, comp.scope || ""]);
}
const config = {
Expand Down
Loading

0 comments on commit 2d3a3ab

Please sign in to comment.