This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
Url preview endpoint #3958
Annotations
8 errors and 1 warning
mediaapi/routing/url_preview.go#L175
Error return value of `resp.Body.Close` is not checked (errcheck)
|
mediaapi/routing/url_preview.go#L359
Error return value of `file.Close` is not checked (errcheck)
|
mediaapi/routing/url_preview.go#L42
cyclomatic complexity 26 of func `makeUrlPreviewHandler` is high (> 25) (gocyclo)
|
mediaapi/routing/url_preview.go#L197
`orginal` is a misspelling of `original` (misspell)
|
mediaapi/routing/url_preview.go#L260
getPreviewFromHTML - result 1 (error) is always nil (unparam)
|
mediaapi/routing/url_preview.go#L514
`loadUrlPreviewResponse` - `logger` is unused (unparam)
|
mediaapi/routing/url_preview.go#L340
shadow: declaration of "filename" shadows declaration at line 293 (govet)
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, golangci/golangci-lint-action@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