Skip to content

Commit 0aeb04a

Browse files
docs: update GetConfigPath comment
1 parent f4e2a01 commit 0aeb04a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ func GetConfig(confPath string) (*lint.Config, error) {
4141
return conf, nil
4242
}
4343

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
44+
// GetConfigPath returns config file path following below order
45+
// 1. commitlint.yaml in current directory
46+
// 2. confFilePath parameter
47+
// 3. use default config
4848
func GetConfigPath(confFilePath string) (string, bool, error) {
4949
// get current directory
5050
currentDir, err := os.Getwd()

0 commit comments

Comments
 (0)