usvc/go-password

View on GitHub

Showing 2 of 2 total issues

Avoid deeply nested control flow statements.
Open

        } else if bytes.Contains([]byte(NumericCharacters), []byte{currentCharacter}) {
            characterType = StringTypeNumeric
            builder = &stringMetadata.Numerics
        } else {
            characterType = StringTypeUnknown
Severity: Major
Found in string_metadata.go - About 45 mins to fix

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

    func GetCommand() *cobra.Command {
        flags := Flags{}
        cmd := &cobra.Command{
            Use: "verify",
            Run: func(command *cobra.Command, args []string) {
    Severity: Major
    Found in cmd/password/verify/main.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language