Skip to content

feat(ci): Github Workflow for Golang static checks and linting #1

feat(ci): Github Workflow for Golang static checks and linting

feat(ci): Github Workflow for Golang static checks and linting #1

Triggered via pull request January 11, 2024 12:43
Status Failure
Total duration 45s
Artifacts

golangci.yml

on: pull_request
golangci-lint
32s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

6 errors
golangci-lint: pkg/api/api.go#L1
: # github.com/fossology/LicenseDb/pkg/api [github.com/fossology/LicenseDb/pkg/api.test]
golangci-lint: pkg/api/api_test.go#L197
cannot use "fossy" (untyped string constant) as *string value in struct literal
golangci-lint: pkg/api/api_test.go#L213
cannot use "abc123" (untyped string constant) as *string value in struct literal (typecheck)
golangci-lint: cmd/laas/main.go#L72
Error return value of `r.Run` is not checked (errcheck)
golangci-lint: cmd/laas/main.go#L66
S1002: should omit comparison to bool constant, can be simplified to `*populatedb` (gosimple)
golangci-lint
issues found