Fix Workhorse linter warnings (part 22)
Problem
make golangci
linter detects warnings in following Workhorse files
How to verify
make golangci | grep -E "^internal/(secret|reject)"
internal/rejectmethods/middleware.go:1:1: package-comments: should have a package comment (revive)
internal/rejectmethods/middleware_test.go:27:29: response body must be closed (bodyclose)
internal/rejectmethods/middleware_test.go:39:28: response body must be closed (bodyclose)
internal/secret/jwt.go:10:2: exported: exported var DefaultClaims should have comment or be unexported (revive)
internal/secret/jwt.go:13:1: exported: exported function JWTTokenString should have comment or be unexported (revive)
internal/secret/jwt.go:1:1: package-comments: should have a package comment (revive)
internal/secret/roundtripper.go:1:1: ST1000: at least one file in a package should have a package comment (stylecheck)
internal/secret/roundtripper.go:8:2: exported: comment on exported const RequestHeader should be of the form "RequestHeader ..." (revive)
internal/secret/secret.go:1:1: ST1000: at least one file in a package should have a package comment (stylecheck)
internal/secret/secret.go:22:1: exported: exported function SetPath should have comment or be unexported (revive)
internal/secret/secret.go:29:1: exported: comment on exported function Bytes should be of the form "Bytes ..." (revive)
Solution
Resolve warnings
Edited by Vasilii Iakliushin