tsenart / deadcode

Standalone repo of deadcode package from http://github.com/remyoudompheng/go-misc
Other
50 stars 15 forks source link

false positive #3

Open kmulvey opened 8 years ago

kmulvey commented 8 years ago

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))))

sheerun commented 7 years ago

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

Dieterbe commented 6 years ago

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