This commit is contained in:
parent
6f7d1ab735
commit
b1cbc84edd
3 changed files with 13 additions and 15 deletions
|
@ -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,9 +39,6 @@ linters-settings:
|
|||
golint:
|
||||
min-confidence: 0
|
||||
gomnd:
|
||||
settings:
|
||||
mnd:
|
||||
# don't include the "operation" and "assign"
|
||||
checks:
|
||||
- argument
|
||||
- case
|
||||
|
@ -44,7 +48,6 @@ linters-settings:
|
|||
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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue