Skip to content

Commit a3a9938

Browse files
refactor(config): set default version, severity
1 parent 7252a65 commit a3a9938

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

config/config.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ func Parse(confPath string) (*lint.Config, error) {
2424
return nil, fmt.Errorf("config file error: %w", err)
2525
}
2626

27-
conf := &lint.Config{}
27+
conf := &lint.Config{
28+
MinVersion: internal.Version(),
29+
Severity: lint.SeverityConfig{
30+
Default: lint.SeverityError,
31+
},
32+
}
33+
2834
err = yaml.UnmarshalStrict(confBytes, conf)
2935
if err != nil {
3036
return nil, fmt.Errorf("config file error: %w", err)

0 commit comments

Comments
 (0)