ory-am/hydra

View on GitHub
cmd/cmd_revoke_token.go

Summary

Maintainability
A
35 mins
Test Coverage

Function NewRevokeTokenCmd has 5 return statements (exceeds 4 allowed).
Open

func NewRevokeTokenCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:     "token the-token",
        Example: `{{ .CommandPath }} --client-id a0184d6c-b313-4e70-a0b9-905b581e9218 --client-secret Hh1BjioNNm ciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNT`,
        Args:    cobra.ExactArgs(1),
Severity: Major
Found in cmd/cmd_revoke_token.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status