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

Update lint (#626)

* Update linter

* Format

* Fix lint
This commit is contained in:
Paul Schwabauer 2025-03-19 09:39:07 +01:00 committed by GitHub
parent 5709b14650
commit 0848143a0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 19 deletions

View file

@ -37,10 +37,10 @@ func TestParse(t *testing.T) {
},
Usage: "[OPTIONS] domain...",
HasVersion: func(cfg *config) bool { return cfg.Version },
SetDefaults: func(cfg *config) {
SetDefaults: func(_ *config) {
},
// Re-establish default values if not set.
EnsureDefaults: func(cfg *config) {
EnsureDefaults: func(_ *config) {
},
}
@ -157,7 +157,6 @@ func TestErrorCheck(t *testing.T) {
return
}
t.Fatalf("process ran with err %v, want exit status 1", err)
}
// TestSecondPassCommandlineParsing checks if the second pass
@ -168,7 +167,7 @@ func TestSecondPassCommandlineParsing(t *testing.T) {
os.Args = []string{"cmd"}
p := Parser[config]{
ConfigLocation: func(cfg *config) string {
ConfigLocation: func(_ *config) string {
// This is a bit stupid.
os.Args = []string{"cmd", "--invalid"}
return "data/empty.toml"
@ -188,7 +187,7 @@ func TestSecondPassCommandlineHelp(t *testing.T) {
os.Args = []string{"cmd"}
p := Parser[config]{
ConfigLocation: func(cfg *config) string {
ConfigLocation: func(_ *config) string {
// This is a bit stupid.
os.Args = []string{"cmd", "--help"}
return "data/empty.toml"