Implement CPLB userspace reverse proxy LB #4
lint.yaml
on: push
Lint
2m 0s
Validate OS tests
16s
Annotations
8 errors
Lint:
inttest/cplb-userspace/cplbuserspace_test.go#L121
File is not `gofmt`-ed with `-s` (gofmt)
|
Lint:
pkg/component/controller/cplb/cplb_linux.go#L467
Duplicate words (interface) found (dupword)
|
Lint:
pkg/component/controller/cplb/cplb_linux.go#L261
for loop can be changed to use an integer range (Go 1.22+) (intrange)
|
Lint:
inttest/cplb-userspace/cplbuserspace_test.go#L122
host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (nosprintfhostport)
|
Lint:
inttest/cplb-userspace/cplbuserspace_test.go#L194
fmt.Errorf can be replaced with errors.New (perfsprint)
|
Lint:
inttest/cplb-userspace/cplbuserspace_test.go#L199
fmt.Errorf can be replaced with errors.New (perfsprint)
|
Lint:
inttest/cplb-userspace/cplbuserspace_test.go#L127
len: use s.Require().Len (testifylint)
|
Lint
Process completed with exit code 2.
|