1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Merge pull request #696 from gocsaf/slient-revive
Some checks failed
generate-markdown / auto-update-readme (push) Has been cancelled
Go Test (oldstable) / build (push) Has been cancelled
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled

silence revive linter warnings
This commit is contained in:
JanHoefelmeyer 2025-10-27 11:07:06 +01:00 committed by GitHub
commit 8dd4cb4fa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 23 deletions

View file

@ -447,6 +447,7 @@ type Flag struct {
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"`
}
@ -610,8 +611,10 @@ type Remediation struct {
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"`
}
@ -742,8 +745,10 @@ type Threat struct {
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.

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
package misc
package misc //revive:disable-line:var-naming
import (
"fmt"

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
package util
package util //revive:disable-line:var-naming
import (
"context"

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
package util
package util //revive:disable-line:var-naming
import (
"bufio"

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
package util
package util //revive:disable-line:var-naming
import (
"bytes"

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
package util
package util //revive:disable-line:var-naming
// Set is a simple set type.
type Set[K comparable] map[K]struct{}

View file

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
package util
package util //revive:disable-line:var-naming
import (
"net/url"