sascha-andres/git-commit

View on GitHub
subcommands/install.go

Summary

Maintainability
A
35 mins
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status