File tree Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change
1
+ linters :
2
+ enable :
3
+ - errorlint
4
+ - forbidigo
5
+ - gochecknoinits
6
+ - gocritic
7
+ - goconst
8
+ - gocyclo
9
+ - gofumpt
10
+ - goimports
11
+ - misspell
12
+ - revive
13
+ - unconvert
14
+ - unparam
15
+ - wastedassign
16
+
17
+ linters-settings :
18
+ gocyclo :
19
+ min-complexity : 12
20
+ gofumpt :
21
+ extra-rules : true
22
+ govet :
23
+ enable-all : true
24
+ disable :
25
+ - fieldalignment
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ import (
7
7
"github.com/go-semantic-release/semantic-release/v2/pkg/semrel"
8
8
)
9
9
10
- var CAVERSION = "dev"
11
- var commitPattern = regexp .MustCompile (`^(\w*)(?:\((.*)\))?(\!)?\: (.*)$` )
12
- var breakingPattern = regexp .MustCompile ("BREAKING CHANGES?" )
10
+ var (
11
+ CAVERSION = "dev"
12
+ commitPattern = regexp .MustCompile (`^(\w*)(?:\((.*)\))?(\!)?\: (.*)$` )
13
+ breakingPattern = regexp .MustCompile ("BREAKING CHANGES?" )
14
+ )
13
15
14
16
type DefaultCommitAnalyzer struct {}
15
17
You can’t perform that action at this time.
0 commit comments