reviewdog [golangci] report
reported by reviewdog 🐶
Findings (8)
cmd/vela-email/plugin_test.go|430 col 4| expressions should not be cuddled with blocks (wsl)
cmd/vela-email/plugin_test.go|432 col 4| assignments should only be cuddled with other assignments (wsl)
cmd/vela-email/plugin_test.go|376 col 4| expressions should not be cuddled with blocks (wsl)
cmd/vela-email/plugin_test.go|377 col 4| assignments should only be cuddled with other assignments (wsl)
cmd/vela-email/plugin_test.go|378 col 4| only one cuddle assignment allowed before if statement (wsl)
cmd/vela-email/plugin_test.go|382 col 4| if statements should only be cuddled with assignments (wsl)
cmd/vela-email/plugin_test.go|392 col 4| if statements should only be cuddled with assignments (wsl)
cmd/vela-email/plugin_test.go|396 col 4| if statements should only be cuddled with assignments (wsl)
Filtered Findings (0)
Annotations
Check failure on line 430 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L430
expressions should not be cuddled with blocks (wsl)
Raw output
cmd/vela-email/plugin_test.go:430:4: expressions should not be cuddled with blocks (wsl)
createMockEnv(t)
^
Check failure on line 432 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L432
assignments should only be cuddled with other assignments (wsl)
Raw output
cmd/vela-email/plugin_test.go:432:4: assignments should only be cuddled with other assignments (wsl)
subject, err := test.parameters.injectEnv(test.parameters.Email.Subject)
^
Check failure on line 376 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L376
expressions should not be cuddled with blocks (wsl)
Raw output
cmd/vela-email/plugin_test.go:376:4: expressions should not be cuddled with blocks (wsl)
createMockEnv(t)
^
Check failure on line 377 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L377
assignments should only be cuddled with other assignments (wsl)
Raw output
cmd/vela-email/plugin_test.go:377:4: assignments should only be cuddled with other assignments (wsl)
subject, err := test.parameters.injectEnv(test.parameters.Email.Subject)
^
Check failure on line 378 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L378
only one cuddle assignment allowed before if statement (wsl)
Raw output
cmd/vela-email/plugin_test.go:378:4: only one cuddle assignment allowed before if statement (wsl)
if err != nil {
^
Check failure on line 382 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L382
if statements should only be cuddled with assignments (wsl)
Raw output
cmd/vela-email/plugin_test.go:382:4: if statements should only be cuddled with assignments (wsl)
if strings.Contains(subject, "<no value>") {
^
Check failure on line 392 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L392
if statements should only be cuddled with assignments (wsl)
Raw output
cmd/vela-email/plugin_test.go:392:4: if statements should only be cuddled with assignments (wsl)
if err != nil {
^
Check failure on line 396 in cmd/vela-email/plugin_test.go
github-actions / golangci
[golangci] cmd/vela-email/plugin_test.go#L396
if statements should only be cuddled with assignments (wsl)
Raw output
cmd/vela-email/plugin_test.go:396:4: if statements should only be cuddled with assignments (wsl)
if strings.Contains(body, "<no value>") {
^