New returns a new Linter instance with given config and rules using the default inspection parser.
(conf *Config, rules []Rule)
| 21 | // New returns a new Linter instance with given config and rules using the |
| 22 | // default inspection parser. |
| 23 | func New(conf *Config, rules []Rule) (*Linter, error) { |
| 24 | return newLinter(conf, rules, nil) |
| 25 | } |
| 26 | |
| 27 | // NewWithParser returns a new Linter instance using parser for ParseAndLint. |
| 28 | func NewWithParser(conf *Config, rules []Rule, parser commit.Parser) (*Linter, error) { |