Skip to content

middleware: add static middleware #5806

middleware: add static middleware

middleware: add static middleware #5806

Triggered via pull request May 18, 2024 12:58
@efectnefectn
synchronize #3006
static-mw
Status Failure
Total duration 49s
Artifacts

linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
lint: middleware/static/static.go#L84
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: middleware/static/static.go#L155
error returned from interface method should be wrapped: sig: func (io/fs.FS).Open(name string) (io/fs.File, error) (wrapcheck)
lint: middleware/static/static.go#L160
error returned from external package is unwrapped: sig: func os.Open(name string) (*os.File, error) (wrapcheck)
lint: middleware/static/static.go#L166
error returned from interface method should be wrapped: sig: func (io/fs.File).Stat() (io/fs.FileInfo, error) (wrapcheck)
lint: middleware/static/static_test.go#L547
Test_isFile's subtests should call t.Parallel (tparallel)
lint
issues found