axamon/token

View on GitHub

Showing 3 of 4 total issues

Method Credentials.Autenticato has 5 return statements (exceeds 4 allowed).
Open

func (c *Credentials) Autenticato(ctx context.Context) bool {

    ctx, cancel := context.WithCancel(ctx)
    defer cancel()

Severity: Major
Found in methods.go - About 35 mins to fix

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

    func CheckCredentialsDBCtx(ctx context.Context, c *Credentials) (bool, error) {
    
        if isdbok == false {
            return false, fmt.Errorf("DB was not rechable during INIT")
        }
    Severity: Major
    Found in dbsearch.go - About 35 mins to fix

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

      func CheckLocalCredentials(ctx context.Context, c *Credentials) (bool, error) {
      
          ctx, cancel := context.WithCancel(ctx)
          defer cancel()
      
      
      Severity: Major
      Found in gettoken.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language