Skip to content

Commit

Permalink
Fix copyright headers. Make staticcheck happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-l-teichmann committed Sep 25, 2023
1 parent 52476f8 commit 6b07885
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
8 changes: 8 additions & 0 deletions internal/certs/certs_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion internal/filter/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
11 changes: 5 additions & 6 deletions internal/models/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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.")
}
Expand Down
4 changes: 2 additions & 2 deletions internal/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion internal/options/options_test.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down

0 comments on commit 6b07885

Please sign in to comment.