fix(ci): codeql #356
fix(ci): codeql #356
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (7)
database/schedule_test.go|160 col 4| if statements should only be cuddled with assignments (wsl)
database/schedule_test.go|158 col 5| return statements should not be cuddled if block has more than two lines (wsl)
library/schedule_test.go|117 col 4| if statements should only be cuddled with assignments (wsl)
library/schedule_test.go|132 col 4| expressions should not be cuddled with blocks (wsl)
library/schedule_test.go|61 col 4| if statements should only be cuddled with assignments (wsl)
library/schedule_test.go|136 col 4| expressions should not be cuddled with blocks (wsl)
library/schedule_test.go|112 col 4| expressions should not be cuddled with blocks (wsl)
Filtered Findings (0)
Annotations
Check failure on line 160 in database/schedule_test.go
github-actions / golangci
[golangci] database/schedule_test.go#L160
if statements should only be cuddled with assignments (wsl)
Raw output
database/schedule_test.go:160:4: if statements should only be cuddled with assignments (wsl)
if err != nil {
^
Check failure on line 158 in database/schedule_test.go
github-actions / golangci
[golangci] database/schedule_test.go#L158
return statements should not be cuddled if block has more than two lines (wsl)
Raw output
database/schedule_test.go:158:5: return statements should not be cuddled if block has more than two lines (wsl)
return
^
Check failure on line 117 in library/schedule_test.go
github-actions / golangci
[golangci] library/schedule_test.go#L117
if statements should only be cuddled with assignments (wsl)
Raw output
library/schedule_test.go:117:4: if statements should only be cuddled with assignments (wsl)
if test.schedule.GetEntry() != test.want.GetEntry() {
^
Check failure on line 132 in library/schedule_test.go
github-actions / golangci
[golangci] library/schedule_test.go#L132
expressions should not be cuddled with blocks (wsl)
Raw output
library/schedule_test.go:132:4: expressions should not be cuddled with blocks (wsl)
test.schedule.SetUpdatedBy(test.want.GetUpdatedBy())
^
Check failure on line 61 in library/schedule_test.go
github-actions / golangci
[golangci] library/schedule_test.go#L61
if statements should only be cuddled with assignments (wsl)
Raw output
library/schedule_test.go:61:4: if statements should only be cuddled with assignments (wsl)
if test.schedule.GetUpdatedBy() != test.want.GetUpdatedBy() {
^
Check failure on line 136 in library/schedule_test.go
github-actions / golangci
[golangci] library/schedule_test.go#L136
expressions should not be cuddled with blocks (wsl)
Raw output
library/schedule_test.go:136:4: expressions should not be cuddled with blocks (wsl)
test.schedule.SetScheduledAt(test.want.GetScheduledAt())
^
Check failure on line 112 in library/schedule_test.go
github-actions / golangci
[golangci] library/schedule_test.go#L112
expressions should not be cuddled with blocks (wsl)
Raw output
library/schedule_test.go:112:4: expressions should not be cuddled with blocks (wsl)
test.schedule.SetName(test.want.GetName())
^