mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
silence revive linter warnings
that we cannot or do not want to fix yet
This commit is contained in:
parent
b6281012f5
commit
cf9c62fcc0
7 changed files with 29 additions and 23 deletions
|
|
@ -444,10 +444,11 @@ var csafFlagLabelPattern = alternativesUnmarshal(
|
|||
// machine readable flag. For example, this could be a machine readable justification
|
||||
// code why a product is not affected.
|
||||
type Flag struct {
|
||||
Date *string `json:"date,omitempty"`
|
||||
GroupIDs *ProductGroups `json:"group_ids,omitempty"`
|
||||
Label *FlagLabel `json:"label"` // required
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
Date *string `json:"date,omitempty"`
|
||||
GroupIDs *ProductGroups `json:"group_ids,omitempty"`
|
||||
Label *FlagLabel `json:"label"` // required
|
||||
//revive:disable-next-line:var-naming until new major version w fix
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
}
|
||||
|
||||
// Flags is a list if Flag elements.
|
||||
|
|
@ -606,14 +607,16 @@ type RestartRequired struct {
|
|||
|
||||
// Remediation specifies details on how to handle (and presumably, fix) a vulnerability.
|
||||
type Remediation struct {
|
||||
Category *RemediationCategory `json:"category"` // required
|
||||
Date *string `json:"date,omitempty"`
|
||||
Details *string `json:"details"` // required
|
||||
Entitlements []*string `json:"entitlements,omitempty"`
|
||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
RestartRequired *RestartRequired `json:"restart_required,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Category *RemediationCategory `json:"category"` // required
|
||||
Date *string `json:"date,omitempty"`
|
||||
Details *string `json:"details"` // required
|
||||
Entitlements []*string `json:"entitlements,omitempty"`
|
||||
//revive:disable:var-naming until new major version w fix
|
||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
//revive:enable
|
||||
RestartRequired *RestartRequired `json:"restart_required,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
}
|
||||
|
||||
// Remediations is a list of Remediation elements.
|
||||
|
|
@ -739,11 +742,13 @@ var csafThreatCategoryPattern = alternativesUnmarshal(
|
|||
|
||||
// Threat contains information about a vulnerability that can change with time.
|
||||
type Threat struct {
|
||||
Category *ThreatCategory `json:"category"` // required
|
||||
Date *string `json:"date,omitempty"`
|
||||
Details *string `json:"details"` // required
|
||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
Category *ThreatCategory `json:"category"` // required
|
||||
Date *string `json:"date,omitempty"`
|
||||
Details *string `json:"details"` // required
|
||||
//revive:disable:var-naming until new major version w fix
|
||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||
ProductIds *Products `json:"product_ids,omitempty"`
|
||||
//revive:enable
|
||||
}
|
||||
|
||||
// Threats is a list of Threat elements.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue