mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix copyright headers. Make staticcheck happy.
This commit is contained in:
parent
52476f8560
commit
6b07885848
5 changed files with 23 additions and 10 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
// This file is Free Software under the MIT License
|
||||||
|
// without warranty, see README.md and LICENSES/MIT.txt for details.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
|
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package certs
|
package certs
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
// 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 filter implements helps to filter advisories.
|
|
||||||
package filter
|
package filter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
// 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 models contains helper models used in the tools internally.
|
|
||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
@ -16,11 +15,11 @@ import (
|
||||||
|
|
||||||
// TestNewTimeInterval tests the creation of time intervals via NewTimeInterval()
|
// TestNewTimeInterval tests the creation of time intervals via NewTimeInterval()
|
||||||
func TestNewTimeInterval(t *testing.T) {
|
func TestNewTimeInterval(t *testing.T) {
|
||||||
var before time.Time
|
var (
|
||||||
before = time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
|
before = time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
|
||||||
var after time.Time
|
after = time.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC)
|
||||||
after = time.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC)
|
pseudoTimeRange = TimeRange{before, after}
|
||||||
pseudoTimeRange := TimeRange{before, after}
|
)
|
||||||
if NewTimeInterval(after, before) != pseudoTimeRange {
|
if NewTimeInterval(after, before) != pseudoTimeRange {
|
||||||
t.Errorf("Failure: Couldn't generate timerange.")
|
t.Errorf("Failure: Couldn't generate timerange.")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
//
|
//
|
||||||
// SPDX-FileCopyrightText: 2022 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: 2022 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
// Package options contains helpers to handle command line options and config files.
|
// Package options contains helpers to handle command line options and config files.
|
||||||
package options
|
package options
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
// Package options contains helpers to handle command line options and config files.
|
// This file is Free Software under the MIT License
|
||||||
|
// without warranty, see README.md and LICENSES/MIT.txt for details.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
|
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package options
|
package options
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue