mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
12155a336b
The PR formats code by removing redundant empty lines and fixes `//nolint` directives. Additionally, this PR adds two more rules to the `revive` configuration: `empty-lines` and `comment-spacings`. Removing unnecessary empty lines helps to keep the codebase clean and concise. This issue is identified by the `revive.empty-lines` rule. In the `//nolint` directive, there must be no spaces between `:` and the linter name: `//nolint:gosec`. See ["Nolint Directive"](https://golangci-lint.run/usage/false-positives/#nolint-directive). This issue is identified by the `revive.comment-spacings` rule. Note that it's not possible to add just a few additional rules to the `revive.enable` list. We need to specify all: default rules plus additional rules. See the detailed explanation [here](https://github.com/prometheus/prometheus/pull/13068). |
||
---|---|---|
.. | ||
archivefiles | ||
artifact | ||
builders | ||
client | ||
commitauthor | ||
deprecate | ||
exec | ||
experimental | ||
extrafiles | ||
gio | ||
git | ||
golden | ||
http | ||
ids | ||
logext | ||
middleware | ||
pipe | ||
pipeline | ||
semerrgroup | ||
shell | ||
skips | ||
static | ||
testctx | ||
testlib | ||
tmpl | ||
yaml |