Skip to content

Base setup

Base setup #1

Triggered via pull request May 29, 2024 17:32
Status Failure
Total duration 46s
Billable time 1m
Artifacts

service-lint.yml

on: pull_request
Run golangci-lint on tratd Service
37s
Run golangci-lint on tratd Service
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run golangci-lint on tratd Service: service/pkg/apperrors/apperrors.go#L5
File is not `gofmt`-ed with `-s` (gofmt)
Run golangci-lint on tratd Service: service/pkg/rules/parse.go#L84
File is not `gofmt`-ed with `-s` (gofmt)
Run golangci-lint on tratd Service: service/pkg/rules/rules.go#L53
block should not start with a whitespace (wsl)
Run golangci-lint on tratd Service: service/pkg/rules/types.go#L46
if statements should only be cuddled with assignments (wsl)
Run golangci-lint on tratd Service: service/pkg/rules/validation.go#L42
return statements should not be cuddled if block has more than two lines (wsl)
Run golangci-lint on tratd Service: service/pkg/rules/validation.go#L64
return statements should not be cuddled if block has more than two lines (wsl)
Run golangci-lint on tratd Service: service/handler/handler.go#L42
return statements should not be cuddled if block has more than two lines (wsl)
Run golangci-lint on tratd Service: service/pkg/rules/parse.go#L93
return with no blank line before (nlreturn)
Run golangci-lint on tratd Service: service/pkg/rules/types.go#L48
return with no blank line before (nlreturn)
Run golangci-lint on tratd Service: service/pkg/rules/types.go#L54
return with no blank line before (nlreturn)
Run golangci-lint on tratd Service
Restore cache failed: Dependencies file is not found in /home/runner/work/tratd/tratd. Supported file pattern: go.sum