We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e2a01 commit 0aeb04aCopy full SHA for 0aeb04a
config/config.go
@@ -41,10 +41,10 @@ func GetConfig(confPath string) (*lint.Config, error) {
41
return conf, nil
42
}
43
44
-// GetConfigPath returns config file path, follwing below
45
-// 1. check for conf in current directory
46
-// 2. check for conf flag
47
-// 3. load default conf
+// GetConfigPath returns config file path following below order
+// 1. commitlint.yaml in current directory
+// 2. confFilePath parameter
+// 3. use default config
48
func GetConfigPath(confFilePath string) (string, bool, error) {
49
// get current directory
50
currentDir, err := os.Getwd()
0 commit comments