Search Box to search for courses, streams and subtitles #1333
Annotations
11 errors and 1 warning
|
golangci-lint:
model/user.go#L303
context-as-argument: context.Context should be the first parameter of a function (revive)
|
golangci-lint:
model/user.go#L318
context-as-argument: context.Context should be the first parameter of a function (revive)
|
golangci-lint:
api/search.go#L501
regexpMust: for const patterns like `^.+[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
|
golangci-lint:
api/search.go#L477
regexpMust: for const patterns like `^[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
|
golangci-lint:
api/search.go#L491
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
|
golangci-lint:
api/search.go#L398
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
golangci-lint:
api/search.go#L426
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
golangci-lint:
api/search.go#L456
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
golangci-lint:
api/search_test.go#L24
var `emptySlice` is unused (unused)
|
golangci-lint:
api/search.go#L523
S1009: should omit nil check; len() for []github.com/TUM-Dev/gocast/model.Course is defined as zero (gosimple)
|
Run actions/setup-go@v4
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
|
Loading