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

Fix copyright headers. Make staticcheck happy.

This commit is contained in:
Sascha L. Teichmann 2023-09-25 21:19:41 +02:00
parent 52476f8560
commit 6b07885848
5 changed files with 23 additions and 10 deletions

View file

@ -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
import "testing"

View file

@ -6,7 +6,6 @@
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
// Package filter implements helps to filter advisories.
package filter
import (

View file

@ -6,7 +6,6 @@
// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2023 Intevation GmbH <https://intevation.de>
// Package models contains helper models used in the tools internally.
package models
import (
@ -16,11 +15,11 @@ import (
// TestNewTimeInterval tests the creation of time intervals via NewTimeInterval()
func TestNewTimeInterval(t *testing.T) {
var before time.Time
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)
pseudoTimeRange := TimeRange{before, after}
var (
before = time.Date(2009, 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}
)
if NewTimeInterval(after, before) != pseudoTimeRange {
t.Errorf("Failure: Couldn't generate timerange.")
}

View file

@ -3,8 +3,8 @@
//
// SPDX-License-Identifier: MIT
//
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
// 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 contains helpers to handle command line options and config files.
package options

View file

@ -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
import (