deadcode icon indicating copy to clipboard operation
deadcode copied to clipboard

false positive

Open kmulvey opened this issue 9 years ago • 2 comments

deadcode deadcode: oauth_helpers.go:70:1: validateJWS is unused

grep validateJWS * oauth_helpers.go:// validateJWS gets the access token oauth_helpers.go:func validateJWS(accessToken string) []byte { test_cases_test.go: claims := unmarshalJWT(validateJWS(access)) test_cases_test.go: claims := unmarshalJWT(validateJWS(string(validateJWE(access))))

kmulvey avatar Mar 16 '16 13:03 kmulvey

yeah, it doesn't support calling private functions / consts across files

sheerun avatar Mar 07 '17 09:03 sheerun

seems like this is fixed upstream https://github.com/remyoudompheng/go-misc/issues/8

Dieterbe avatar Dec 27 '17 00:12 Dieterbe