sascha-andres/git-commit

View on GitHub

Showing 2 of 2 total issues

Method Configuration.validateGitLabCI has 7 return statements (exceeds 4 allowed).
Open

func (cfg *Configuration) validateGitLabCI() (result bool) {
    if !cfg.LintGitLabCI {
        return true
    }

Severity: Major
Found in hook/v2/gitlab_ci_linter.go - About 45 mins to fix

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

    func Install(gitFolderPath string) error {
        var forceOverwrite bool
        flagSet := flag.NewFlagSet("git-hook-commit install", flag.ContinueOnError)
        flagSet.BoolVar(&forceOverwrite, "f", false, `force file creation by overwriting`)
        err := flagSet.Parse(os.Args[2:])
    Severity: Major
    Found in subcommands/install.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language