axamon/token

View on GitHub

Showing 4 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

        2: cannot find package "github.com/go-sql-driver/mysql" in any of:
        Open

            _ "github.com/go-sql-driver/mysql"
        Severity: Minor
        Found in dbsearch.go by govet
        Severity
        Category
        Status
        Source
        Language