chore: add linters gocritic
parent
16846319b0
commit
e7feb0ccf9
|
@ -27,6 +27,7 @@ linters:
|
|||
- errname
|
||||
- errorlint
|
||||
- execinquery
|
||||
- gocritic
|
||||
- goerr113
|
||||
- gofumpt
|
||||
- gosec
|
||||
|
@ -68,3 +69,7 @@ linters-settings:
|
|||
- unusedresult
|
||||
staticcheck:
|
||||
checks: ["all", "-SA1019"]
|
||||
gocritic:
|
||||
enabled-tags:
|
||||
- style
|
||||
- performance
|
||||
|
|
|
@ -140,10 +140,10 @@ func (a *action) generateMarkdownChangelog(output, version string, commits []con
|
|||
}
|
||||
|
||||
// Generate markdown from commits
|
||||
newNodes := changelog.GenerateMarkdown(commits, a.flags.scopes, version, time.Now())
|
||||
nodes := changelog.GenerateMarkdown(commits, a.flags.scopes, version, time.Now())
|
||||
|
||||
// Final changelog with new commits above old commits
|
||||
nodes := append(newNodes, oldNodes...)
|
||||
nodes = append(nodes, oldNodes...)
|
||||
changelogText := markdown.GenerateText(nodes)
|
||||
|
||||
// Demo run
|
||||
|
@ -172,10 +172,10 @@ func (a *action) generateRSTChangelog(output, version string, commits []conventi
|
|||
}
|
||||
|
||||
// Generate markdown from commits
|
||||
newNodes := changelog.GenerateRST(commits, a.flags.scopes, version, time.Now())
|
||||
nodes := changelog.GenerateRST(commits, a.flags.scopes, version, time.Now())
|
||||
|
||||
// Final changelog with new commits above old commits
|
||||
nodes := append(newNodes, oldNodes...)
|
||||
nodes = append(nodes, oldNodes...)
|
||||
changelogText := rst.GenerateText(nodes)
|
||||
|
||||
// Demo run
|
||||
|
|
Loading…
Reference in New Issue