Adds support for iptables ingress packet loss #220
build.yaml
on: pull_request
lint and test
1m 1s
integration tests
1m 24s
Annotations
9 errors and 1 warning
lint and test
Process completed with exit code 2.
|
lint and test:
pkg/chaos/iptables/loss.go#L117
shadow: declaration of "ctx" shadows declaration at line 61 (govet)
|
lint and test:
pkg/chaos/iptables/cmd/iptables.go#L14
cyclomatic complexity 21 of func `parseIPTablesParams` is high (> 15) (gocyclo)
|
lint and test:
pkg/chaos/iptables/iptables.go#L78
paramTypeCombine: func(ctx context.Context, client container.Client, c *container.Container, addCmdPrefix []string, delCmdPrefix, cmdSuffix []string, srcIPs, dstIPs []*net.IPNet, sports, dports []string, duration time.Duration, image string, pull, dryRun bool) error could be replaced with func(ctx context.Context, client container.Client, c *container.Container, addCmdPrefix, delCmdPrefix, cmdSuffix []string, srcIPs, dstIPs []*net.IPNet, sports, dports []string, duration time.Duration, image string, pull, dryRun bool) error (gocritic)
|
lint and test:
pkg/container/docker_client.go#L913
appendAssign: append result not assigned to the same slice (gocritic)
|
lint and test:
pkg/container/docker_client.go#L906
appendAssign: append result not assigned to the same slice (gocritic)
|
lint and test:
pkg/container/docker_client.go#L879
appendAssign: append result not assigned to the same slice (gocritic)
|
lint and test:
pkg/chaos/iptables/cmd/iptables.go#L32
string `tcp` has 3 occurrences, make it a constant (goconst)
|
lint and test:
pkg/chaos/iptables/loss.go#L33
string `random` has 2 occurrences, make it a constant (goconst)
|
lint and test
Could not find any JUnit XML files for .cover/tests.xml
|