Skip to content
Snippets Groups Projects
Commit 8643fc21 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

style: add .golangci-lint.yaml

parent 4432b748
No related branches found
No related tags found
No related merge requests found
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
......@@ -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{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment