From 6b078858481ccae632115cd7182d43bc65d579d7 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Mon, 25 Sep 2023 21:19:41 +0200 Subject: [PATCH] Fix copyright headers. Make staticcheck happy. --- internal/certs/certs_test.go | 8 ++++++++ internal/filter/filter_test.go | 1 - internal/models/models_test.go | 11 +++++------ internal/options/options.go | 4 ++-- internal/options/options_test.go | 9 ++++++++- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/internal/certs/certs_test.go b/internal/certs/certs_test.go index 46323d03..e9a36cd0 100644 --- a/internal/certs/certs_test.go +++ b/internal/certs/certs_test.go @@ -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) +// Software-Engineering: 2023 Intevation GmbH + package certs import "testing" diff --git a/internal/filter/filter_test.go b/internal/filter/filter_test.go index 0ac3438c..14bcc59c 100644 --- a/internal/filter/filter_test.go +++ b/internal/filter/filter_test.go @@ -6,7 +6,6 @@ // SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) // Software-Engineering: 2023 Intevation GmbH -// Package filter implements helps to filter advisories. package filter import ( diff --git a/internal/models/models_test.go b/internal/models/models_test.go index a01157f1..7da674f4 100644 --- a/internal/models/models_test.go +++ b/internal/models/models_test.go @@ -6,7 +6,6 @@ // SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) // Software-Engineering: 2023 Intevation GmbH -// 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.") } diff --git a/internal/options/options.go b/internal/options/options.go index bead99dc..713e81a6 100644 --- a/internal/options/options.go +++ b/internal/options/options.go @@ -3,8 +3,8 @@ // // SPDX-License-Identifier: MIT // -// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) -// Software-Engineering: 2022 Intevation GmbH +// SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) +// Software-Engineering: 2023 Intevation GmbH // Package options contains helpers to handle command line options and config files. package options diff --git a/internal/options/options_test.go b/internal/options/options_test.go index 7e59a487..3feba934 100644 --- a/internal/options/options_test.go +++ b/internal/options/options_test.go @@ -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) +// Software-Engineering: 2023 Intevation GmbH + package options import (