(confParam string)
| 62 | } |
| 63 | |
| 64 | func getLinter(confParam string) (*lint.Linter, lint.Formatter, error) { |
| 65 | conf, err := getConfig(confParam) |
| 66 | if err != nil { |
| 67 | return nil, nil, err |
| 68 | } |
| 69 | |
| 70 | format, err := config.GetFormatter(conf) |
| 71 | if err != nil { |
| 72 | return nil, nil, err |
| 73 | } |
| 74 | |
| 75 | linter, err := config.NewLinter(conf) |
| 76 | if err != nil { |
| 77 | return nil, nil, err |
| 78 | } |
| 79 | |
| 80 | return linter, format, nil |
| 81 | } |
| 82 | |
| 83 | func getConfig(confParam string) (*lint.Config, error) { |
| 84 | if confParam != "" { |
no test coverage detected