fix: golangci-lint settings
All checks were successful
Go build / build (push) Successful in 5m22s

This commit is contained in:
Peter 2024-04-10 08:35:15 +02:00
parent 6f7d1ab735
commit b1cbc84edd
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 13 additions and 15 deletions

View file

@ -5,7 +5,14 @@ linters-settings:
lines: 100
statements: 50
gci:
local-prefixes: code.icb4dc0.de/prskr/nurse
sections:
- standard
- default
- prefix(code.icb4dc0.de/prskr/nurse)
- blank
- dot
- alias
custom-order: true
goconst:
min-len: 2
min-occurrences: 2
@ -32,19 +39,15 @@ linters-settings:
golint:
min-confidence: 0
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks:
- argument
- case
- condition
- return
checks:
- argument
- case
- condition
- return
gomoddirectives:
replace-allow-list:
- github.com/docker/docker
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
@ -125,7 +128,5 @@ issues:
- govet
run:
skip-files:
- ".*.mock.\\.go$"
modules-download-mode: readonly
timeout: 5m

View file

@ -144,7 +144,6 @@ func (a *app) init(ctx *cli.Context) (err error) {
config.WithServersFromArgs(ctx.StringSlice(serversFlag)),
config.WithEndpointsFromEnv(),
)
if err != nil {
return fmt.Errorf("failed to load Nurse config: %w", err)
}

View file

@ -9,7 +9,6 @@ import (
"code.icb4dc0.de/prskr/nurse/config"
)
//nolint:paralleltest // not possible with env setup
func TestServersFromEnv(t *testing.T) {
tests := []struct {
name string
@ -76,7 +75,6 @@ func TestServersFromEnv(t *testing.T) {
}
}
//nolint:paralleltest // not possible with env setup
func TestEndpointsFromEnv(t *testing.T) {
tests := []struct {
name string