middleware: add static middleware #5806
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
|