Search Box to search for courses, streams and subtitles #1333
Annotations
10 errors and 2 warnings
model/user.go#L303
context-as-argument: context.Context should be the first parameter of a function (revive)
|
model/user.go#L318
context-as-argument: context.Context should be the first parameter of a function (revive)
|
api/search.go#L501
regexpMust: for const patterns like `^.+[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
|
api/search.go#L477
regexpMust: for const patterns like `^[0-9]{4}[WS]$`, use regexp.MustCompile (gocritic)
|
api/search.go#L491
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
|
api/search.go#L398
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
api/search.go#L426
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
api/search.go#L456
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
api/search_test.go#L24
var `emptySlice` is unused (unused)
|
api/search.go#L523
S1009: should omit nil check; len() for []github.com/TUM-Dev/gocast/model.Course is defined as zero (gosimple)
|
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/
|
|
This job failed
Loading