🔥 feat: Host auth middleware #116
Annotations
6 errors
|
lint / lint
issues found
|
|
lint / lint:
middleware/hostauthorization/hostauthorization_test.go#L880
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
|
lint / lint:
middleware/hostauthorization/hostauthorization_test.go#L722
unused-parameter: parameter 'host' seems to be unused, consider removing or renaming it as _ (revive)
|
|
lint / lint:
middleware/hostauthorization/hostauthorization.go#L109
emptyStringTest: replace `len(host) > 0` with `host != ""` (gocritic)
|
|
lint / lint:
middleware/hostauthorization/hostauthorization.go#L68
emptyStringTest: replace `len(host) > 0` with `host != ""` (gocritic)
|
|
lint / lint:
middleware/hostauthorization/hostauthorization.go#L38
ifElseChain: rewrite if-else to switch statement (gocritic)
|