|
3 | 3 |
|
4 | 4 | import * as fs from 'fs'; |
5 | 5 | import * as semver from 'semver'; |
6 | | -import {globby} from 'globby'; |
| 6 | +import { globby } from 'globby'; |
7 | 7 |
|
8 | 8 | import { Uri } from 'vscode'; |
9 | 9 | import { Jdtls } from "../java/jdtls"; |
@@ -148,7 +148,7 @@ async function getDependencyIssues(dependencies: PackageDescription[]): Promise< |
148 | 148 | return issues; |
149 | 149 | } |
150 | 150 |
|
151 | | -async function getWorkspaceIssues(projectDeps:{projectNode: INodeData, dependencies: PackageDescription[]}[]): Promise<UpgradeIssue[]> { |
| 151 | +async function getWorkspaceIssues(projectDeps: {projectNode: INodeData, dependencies: PackageDescription[]}[]): Promise<UpgradeIssue[]> { |
152 | 152 |
|
153 | 153 | const issues: UpgradeIssue[] = []; |
154 | 154 | const dependencyMap: Map<string, PackageDescription> = new Map(); |
@@ -186,7 +186,7 @@ async function findAllPomFiles(dir: string): Promise<string[]> { |
186 | 186 | * Parse dependencies from a single pom.xml file |
187 | 187 | */ |
188 | 188 | function parseDependenciesFromSinglePom(pomPath: string): Set<string> { |
189 | | - //TODO : Use a proper XML parser if needed |
| 189 | + // TODO : Use a proper XML parser if needed |
190 | 190 | const directDeps = new Set<string>(); |
191 | 191 | try { |
192 | 192 | const pomContent = fs.readFileSync(pomPath, 'utf-8'); |
@@ -371,7 +371,7 @@ export async function getDirectDependencies(projectNode: INodeData): Promise<Pac |
371 | 371 | sendInfo("", { |
372 | 372 | operationName: "java.dependency.assessmentManager.getDirectDependencies.noDirectDependencyInfo" |
373 | 373 | }); |
374 | | - //TODO: fallback to return all dependencies if we cannot parse direct dependencies or just return empty? |
| 374 | + // TODO: fallback to return all dependencies if we cannot parse direct dependencies or just return empty? |
375 | 375 | return dependencies; |
376 | 376 | } |
377 | 377 | // Filter to only direct dependencies if we have build file info |
|
0 commit comments