fabric8-analytics-lsp-server
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -57,2 +57,3 @@ /* -------------------------------------------------------------------------------------------- | ||
this.advisoryCount = 0; | ||
this.highestSeverity = null; | ||
} | ||
@@ -81,2 +82,5 @@ consume(data) { | ||
} | ||
if (this.highestSeverityBinding != null) { | ||
this.highestSeverity = bind_object(data, this.highestSeverityBinding); | ||
} | ||
return this.item != null; | ||
@@ -124,2 +128,4 @@ } | ||
this.exploitCountBinding = { path: ['exploitable_vulnerabilities_count'] }; | ||
/* Highest Severity */ | ||
this.highestSeverityBinding = { path: ['highest_severity'] }; | ||
} | ||
@@ -136,7 +142,15 @@ produce(ctx) { | ||
} | ||
const recommendedVersion = this.changeTo || "N/A"; | ||
const exploitCount = this.exploitCount || "unavailable"; | ||
const msg = `${this.context.name.value}: ${this.context.version.value} | ||
Known security vulnerability: ${this.vulnerabilityCount} | ||
Security advisory: ${this.advisoryCount} | ||
Exploits: ${exploitCount} | ||
Highest severity: ${this.highestSeverity} | ||
Recommendation: ${recommendedVersion}`; | ||
let diagnostic = { | ||
severity: diagSeverity, | ||
range: utils_1.get_range(this.context.version), | ||
message: this.message, | ||
source: 'Dependency Analytics Plugin [Powered by Snyk]', | ||
message: msg, | ||
source: '\nDependency Analytics Plugin [Powered by Snyk]', | ||
}; | ||
@@ -143,0 +157,0 @@ // TODO: this can be done lazily |
{ | ||
"name": "fabric8-analytics-lsp-server", | ||
"description": "LSP Server for Dependency Analytics", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Pavel Odvody", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70791
744