(confParam string)
| 81 | } |
| 82 | |
| 83 | func getConfig(confParam string) (*lint.Config, error) { |
| 84 | if confParam != "" { |
| 85 | confParam = filepath.Clean(confParam) |
| 86 | return config.Parse(confParam) |
| 87 | } |
| 88 | |
| 89 | // If config param is empty, lookup for defaults |
| 90 | conf, err := config.LookupAndParse() |
| 91 | if err != nil { |
| 92 | return nil, err |
| 93 | } |
| 94 | |
| 95 | return conf, nil |
| 96 | } |
| 97 | |
| 98 | func getCommitMsg(fileInput string) (string, error) { |
| 99 | commitMsg, err := readStdInPipe() |
no test coverage detected