Skip to content

Search Box to search for courses, streams and subtitles #1333

Search Box to search for courses, streams and subtitles

Search Box to search for courses, streams and subtitles #1333

Triggered via pull request September 21, 2024 14:20
Status Failure
Total duration 1m 35s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 5 warnings
lint (./worker/edge): model/user.go#L303
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./worker/edge): model/user.go#L318
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./worker/edge): api/search.go#L501
regexpMust: for const patterns like `^.+[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./worker/edge): api/search.go#L477
regexpMust: for const patterns like `^[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./worker/edge): api/search.go#L491
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
lint (./worker/edge): api/search.go#L398
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker/edge): api/search.go#L426
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker/edge): api/search.go#L456
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker/edge): api/search_test.go#L24
var `emptySlice` is unused (unused)
lint (./worker/edge): api/search.go#L523
S1009: should omit nil check; len() for []github.com/TUM-Dev/gocast/model.Course is defined as zero (gosimple)
lint (./...): model/user.go#L303
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./...): model/user.go#L318
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./...): api/search.go#L501
regexpMust: for const patterns like `^.+[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./...): api/search.go#L477
regexpMust: for const patterns like `^[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./...): api/search.go#L491
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
lint (./...): api/search.go#L398
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./...): api/search.go#L426
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./...): api/search.go#L456
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./...): api/search_test.go#L24
var `emptySlice` is unused (unused)
lint (./...): api/search.go#L523
S1009: should omit nil check; len() for []github.com/TUM-Dev/gocast/model.Course is defined as zero (gosimple)
lint (./worker)
The job was canceled because "_worker_edge" failed.
lint (./worker): model/user.go#L303
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./worker): model/user.go#L318
context-as-argument: context.Context should be the first parameter of a function (revive)
lint (./worker): api/search.go#L501
regexpMust: for const patterns like `^.+[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./worker): api/search.go#L477
regexpMust: for const patterns like `^[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
lint (./worker): api/search.go#L491
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
lint (./worker): api/search.go#L398
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker): api/search.go#L426
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker): api/search.go#L456
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (./worker): api/search_test.go#L24
var `emptySlice` is unused (unused)
lint (./worker): api/search.go#L523
S1009: should omit nil check; len() for []github.com/TUM-Dev/gocast/model.Course is defined as zero (gosimple)
lint (./worker/edge)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (./worker/edge)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./...)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (./...)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./worker)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum