1
0
Fork 0
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:
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 package certs
import "testing" import "testing"

View file

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

View file

@ -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.")
} }

View file

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

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 package options
import ( import (