MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / initLint

Function initLint

internal/cmd/init.go:9–15  ·  view source on GitHub ↗

initLint is the callback function for init command

(confPath, hooksPath string, isGlobal, isReplace bool)

Source from the content-addressed store, hash-verified

7
8// initLint is the callback function for init command
9func initLint(confPath, hooksPath string, isGlobal, isReplace bool) error {
10 hookDir, err := initHooks(confPath, hooksPath, isGlobal, isReplace)
11 if err != nil {
12 return err
13 }
14 return setGitConf(hookDir, isGlobal)
15}
16
17func setGitConf(hookDir string, isGlobal bool) error {
18 args := []string{"config"}

Callers 1

newInitCmdFunction · 0.85

Calls 2

initHooksFunction · 0.85
setGitConfFunction · 0.85

Tested by

no test coverage detected