1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00
goreleaser/pkg
Oleksandr Redko 12155a336b
refactor: remove empty lines, fix //nolint (#5235)
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).
2024-10-31 13:51:54 -03:00
..
archive refactor: remove empty lines, fix //nolint (#5235) 2024-10-31 13:51:54 -03:00
build fix: standardize .Ext to always have the preceding . (#5207) 2024-10-15 14:57:27 -03:00
config feat(ko): support annotations and user (#5227) 2024-10-27 16:01:09 -03:00
context feat: default GOARM change to 7 (#5157) 2024-09-27 13:31:29 -03:00
defaults feat: when --clean, remove dist before checking git state (#5057) 2024-08-08 10:14:29 -03:00
healthcheck feat: binary signs (#5018) 2024-08-03 14:36:54 -03:00