Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
commit-analyzer-cz
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
go-semantic-release
commit-analyzer-cz
Commits
8643fc21
Commit
8643fc21
authored
2 years ago
by
Christoph Witzko
Browse files
Options
Downloads
Patches
Plain Diff
style: add .golangci-lint.yaml
parent
4432b748
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.golangci.yaml
+25
-0
25 additions, 0 deletions
.golangci.yaml
pkg/analyzer/commit_analyzer.go
+5
-3
5 additions, 3 deletions
pkg/analyzer/commit_analyzer.go
with
30 additions
and
3 deletions
.golangci.yaml
0 → 100644
+
25
−
0
View file @
8643fc21
linters
:
enable
:
-
errorlint
-
forbidigo
-
gochecknoinits
-
gocritic
-
goconst
-
gocyclo
-
gofumpt
-
goimports
-
misspell
-
revive
-
unconvert
-
unparam
-
wastedassign
linters-settings
:
gocyclo
:
min-complexity
:
12
gofumpt
:
extra-rules
:
true
govet
:
enable-all
:
true
disable
:
-
fieldalignment
This diff is collapsed.
Click to expand it.
pkg/analyzer/commit_analyzer.go
+
5
−
3
View file @
8643fc21
...
...
@@ -7,9 +7,11 @@ import (
"github.com/go-semantic-release/semantic-release/v2/pkg/semrel"
)
var
CAVERSION
=
"dev"
var
commitPattern
=
regexp
.
MustCompile
(
`^(\w*)(?:\((.*)\))?(\!)?\: (.*)$`
)
var
breakingPattern
=
regexp
.
MustCompile
(
"BREAKING CHANGES?"
)
var
(
CAVERSION
=
"dev"
commitPattern
=
regexp
.
MustCompile
(
`^(\w*)(?:\((.*)\))?(\!)?\: (.*)$`
)
breakingPattern
=
regexp
.
MustCompile
(
"BREAKING CHANGES?"
)
)
type
DefaultCommitAnalyzer
struct
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment