Skip to content

Commit

Permalink
refactor(config): formatter defaults when not given in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
muthukrishnan24 committed Mar 6, 2022
1 parent bae5bd3 commit 6b6bb3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"golang.org/x/mod/semver"
yaml "gopkg.in/yaml.v2"

"github.com/conventionalcommit/commitlint/formatter"
"github.com/conventionalcommit/commitlint/internal"
"github.com/conventionalcommit/commitlint/internal/registry"
"github.com/conventionalcommit/commitlint/lint"
Expand All @@ -26,6 +27,7 @@ func Parse(confPath string) (*lint.Config, error) {

conf := &lint.Config{
MinVersion: internal.Version(),
Formatter: (&formatter.DefaultFormatter{}).Name(),
Severity: lint.SeverityConfig{
Default: lint.SeverityError,
},
Expand Down

0 comments on commit 6b6bb3d

Please sign in to comment.