Skip to content

Commit 7021e1e

Browse files
refactor(lint)!: rename NewLinter to New
1 parent 5c26aae commit 7021e1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/lint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func GetLinter(conf *lint.Config) (*lint.Linter, error) {
1212
if err != nil {
1313
return nil, err
1414
}
15-
return lint.NewLinter(conf, rules)
15+
return lint.New(conf, rules)
1616
}
1717

1818
// GetFormatter returns the formatter as defined in conf

lint/linter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ type Linter struct {
77
rules []Rule
88
}
99

10-
// NewLinter returns a new Linter instance with given config and rules
11-
func NewLinter(conf *Config, rules []Rule) (*Linter, error) {
10+
// New returns a new Linter instance with given config and rules
11+
func New(conf *Config, rules []Rule) (*Linter, error) {
1212
return &Linter{conf: conf, rules: rules}, nil
1313
}
1414

0 commit comments

Comments
 (0)