mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +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
|
|
@ -447,6 +447,7 @@ type Flag struct {
|
||||||
Date *string `json:"date,omitempty"`
|
Date *string `json:"date,omitempty"`
|
||||||
GroupIDs *ProductGroups `json:"group_ids,omitempty"`
|
GroupIDs *ProductGroups `json:"group_ids,omitempty"`
|
||||||
Label *FlagLabel `json:"label"` // required
|
Label *FlagLabel `json:"label"` // required
|
||||||
|
//revive:disable-next-line:var-naming until new major version w fix
|
||||||
ProductIds *Products `json:"product_ids,omitempty"`
|
ProductIds *Products `json:"product_ids,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -610,8 +611,10 @@ type Remediation struct {
|
||||||
Date *string `json:"date,omitempty"`
|
Date *string `json:"date,omitempty"`
|
||||||
Details *string `json:"details"` // required
|
Details *string `json:"details"` // required
|
||||||
Entitlements []*string `json:"entitlements,omitempty"`
|
Entitlements []*string `json:"entitlements,omitempty"`
|
||||||
|
//revive:disable:var-naming until new major version w fix
|
||||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||||
ProductIds *Products `json:"product_ids,omitempty"`
|
ProductIds *Products `json:"product_ids,omitempty"`
|
||||||
|
//revive:enable
|
||||||
RestartRequired *RestartRequired `json:"restart_required,omitempty"`
|
RestartRequired *RestartRequired `json:"restart_required,omitempty"`
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
@ -742,8 +745,10 @@ type Threat struct {
|
||||||
Category *ThreatCategory `json:"category"` // required
|
Category *ThreatCategory `json:"category"` // required
|
||||||
Date *string `json:"date,omitempty"`
|
Date *string `json:"date,omitempty"`
|
||||||
Details *string `json:"details"` // required
|
Details *string `json:"details"` // required
|
||||||
|
//revive:disable:var-naming until new major version w fix
|
||||||
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
GroupIds *ProductGroups `json:"group_ids,omitempty"`
|
||||||
ProductIds *Products `json:"product_ids,omitempty"`
|
ProductIds *Products `json:"product_ids,omitempty"`
|
||||||
|
//revive:enable
|
||||||
}
|
}
|
||||||
|
|
||||||
// Threats is a list of Threat elements.
|
// Threats is a list of Threat elements.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package misc
|
package misc //revive:disable-line:var-naming
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package util
|
package util //revive:disable-line:var-naming
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package util
|
package util //revive:disable-line:var-naming
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package util
|
package util //revive:disable-line:var-naming
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package util
|
package util //revive:disable-line:var-naming
|
||||||
|
|
||||||
// Set is a simple set type.
|
// Set is a simple set type.
|
||||||
type Set[K comparable] map[K]struct{}
|
type Set[K comparable] map[K]struct{}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package util
|
package util //revive:disable-line:var-naming
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue