From fb9b138f5c75e040d4421ef71b0990c01f889939 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 31 Jan 2022 18:57:26 -0500 Subject: internal/cvss: disable badKey (unused) --- internal/cvss/v2key.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'internal/cvss/v2key.go') diff --git a/internal/cvss/v2key.go b/internal/cvss/v2key.go index e3d6aa2..26ee200 100644 --- a/internal/cvss/v2key.go +++ b/internal/cvss/v2key.go @@ -45,24 +45,24 @@ var v2Keys = map[v2Key]struct { v2AvailabilityRequirement: { "Availability Requirement", Environmental }, } -// v2 metric key IDs lut -var v2KeyIds = map[string]v2Key { - "AV": v2AccessVector, - "AC": v2AccessComplexity, - "Au": v2Authentication, - "C": v2ConfidentialityImpact, - "I": v2IntegrityImpact, - "A": v2AvailabilityImpact, - "E": v2Exploitability, - "RL": v2RemediationLevel, - "RC": v2ReportConfidence, - "CDP": v2CollateralDamagePotential, - "TD": v2TargetDistribution, - "CR": v2ConfidentialityRequirement, - "IR": v2IntegrityRequirement, - "AR": v2AvailabilityRequirement, -} - +// // v2 metric key IDs lut +// var v2KeyIds = map[string]v2Key { +// "AV": v2AccessVector, +// "AC": v2AccessComplexity, +// "Au": v2Authentication, +// "C": v2ConfidentialityImpact, +// "I": v2IntegrityImpact, +// "A": v2AvailabilityImpact, +// "E": v2Exploitability, +// "RL": v2RemediationLevel, +// "RC": v2ReportConfidence, +// "CDP": v2CollateralDamagePotential, +// "TD": v2TargetDistribution, +// "CR": v2ConfidentialityRequirement, +// "IR": v2IntegrityRequirement, +// "AR": v2AvailabilityRequirement, +// } +// // // Get metric key from string. // func getV2KeyFromString(s string) (v2Key, error) { // k, ok := v2KeyIds[s] -- cgit v1.2.3