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
|
lines: 100
|
||||||
statements: 50
|
statements: 50
|
||||||
gci:
|
gci:
|
||||||
local-prefixes: code.icb4dc0.de/prskr/nurse
|
sections:
|
||||||
|
- standard
|
||||||
|
- default
|
||||||
|
- prefix(code.icb4dc0.de/prskr/nurse)
|
||||||
|
- blank
|
||||||
|
- dot
|
||||||
|
- alias
|
||||||
|
custom-order: true
|
||||||
goconst:
|
goconst:
|
||||||
min-len: 2
|
min-len: 2
|
||||||
min-occurrences: 2
|
min-occurrences: 2
|
||||||
|
@ -32,9 +39,6 @@ linters-settings:
|
||||||
golint:
|
golint:
|
||||||
min-confidence: 0
|
min-confidence: 0
|
||||||
gomnd:
|
gomnd:
|
||||||
settings:
|
|
||||||
mnd:
|
|
||||||
# don't include the "operation" and "assign"
|
|
||||||
checks:
|
checks:
|
||||||
- argument
|
- argument
|
||||||
- case
|
- case
|
||||||
|
@ -44,7 +48,6 @@ linters-settings:
|
||||||
replace-allow-list:
|
replace-allow-list:
|
||||||
- github.com/docker/docker
|
- github.com/docker/docker
|
||||||
govet:
|
govet:
|
||||||
check-shadowing: true
|
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
- fieldalignment
|
- fieldalignment
|
||||||
|
@ -125,7 +128,5 @@ issues:
|
||||||
- govet
|
- govet
|
||||||
|
|
||||||
run:
|
run:
|
||||||
skip-files:
|
|
||||||
- ".*.mock.\\.go$"
|
|
||||||
modules-download-mode: readonly
|
modules-download-mode: readonly
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|
|
@ -144,7 +144,6 @@ func (a *app) init(ctx *cli.Context) (err error) {
|
||||||
config.WithServersFromArgs(ctx.StringSlice(serversFlag)),
|
config.WithServersFromArgs(ctx.StringSlice(serversFlag)),
|
||||||
config.WithEndpointsFromEnv(),
|
config.WithEndpointsFromEnv(),
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to load Nurse config: %w", err)
|
return fmt.Errorf("failed to load Nurse config: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ import (
|
||||||
"code.icb4dc0.de/prskr/nurse/config"
|
"code.icb4dc0.de/prskr/nurse/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:paralleltest // not possible with env setup
|
|
||||||
func TestServersFromEnv(t *testing.T) {
|
func TestServersFromEnv(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
|
@ -76,7 +75,6 @@ func TestServersFromEnv(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint:paralleltest // not possible with env setup
|
|
||||||
func TestEndpointsFromEnv(t *testing.T) {
|
func TestEndpointsFromEnv(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
|
|
Loading…
Reference in a new issue