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