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,19 +39,15 @@ linters-settings:
|
||||||
golint:
|
golint:
|
||||||
min-confidence: 0
|
min-confidence: 0
|
||||||
gomnd:
|
gomnd:
|
||||||
settings:
|
checks:
|
||||||
mnd:
|
- argument
|
||||||
# don't include the "operation" and "assign"
|
- case
|
||||||
checks:
|
- condition
|
||||||
- argument
|
- return
|
||||||
- case
|
|
||||||
- condition
|
|
||||||
- return
|
|
||||||
gomoddirectives:
|
gomoddirectives:
|
||||||
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