Nats registry action #120
Merged
Nats registry action #120
Annotations
10 errors and 8 warnings
assert_test.go#L8
test helper function should start from tb.Helper() (thelper)
|
assert_test.go#L14
test helper function should start from tb.Helper() (thelper)
|
environment_test.go#L7
import 'github.com/go-micro/plugins/v4/registry/nats' is not allowed from list 'Main' (depguard)
|
nats.go#L11
import 'github.com/nats-io/nats.go' is not allowed from list 'Main' (depguard)
|
nats.go#L40
parameter name 'n' is too short for the scope of its usage (varnamelen)
|
nats.go#L94
Consider pre-allocating `cAddrs` (prealloc)
|
nats.go#L95
ranges should only be cuddled with assignments used in the iteration (wsl)
|
nats.go#L99
if statements should only be cuddled with assignments (wsl)
|
nats.go#L102
append only allowed to cuddle with appended value (wsl)
|
nats.go#L104
if statements should only be cuddled with assignments (wsl)
|
nats.go#L323
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
|
nats.go#L341
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
|
nats.go#L358
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
|
nats.go#L366
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
|
nats.go#L409
exported: exported function NewRegistry should have comment or be unexported (revive)
|
options.go#L17
exported: exported var DefaultQuorum should have comment or be unexported (revive)
|
options.go#L28
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
options.go#L33
exported: exported function Quorum should have comment or be unexported (revive)
|
The logs for this run have expired and are no longer available.
Loading