1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00
goreleaser/pkg/archive
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
..
gzip feat!: rename module to /v2 (#4894) 2024-05-26 15:02:57 -03:00
tar refactor: rename archive.Copying to archive.Copy (#5233) 2024-10-31 08:53:27 -03:00
targz refactor: rename archive.Copying to archive.Copy (#5233) 2024-10-31 08:53:27 -03:00
tarxz feat!: rename module to /v2 (#4894) 2024-05-26 15:02:57 -03:00
tarzst feat!: rename module to /v2 (#4894) 2024-05-26 15:02:57 -03:00
testdata feat: allow to use .tar as archive format 2021-08-31 23:09:18 -03:00
zip refactor: remove empty lines, fix //nolint (#5235) 2024-10-31 13:51:54 -03:00
archive_test.go refactor: rename archive.Copying to archive.Copy (#5233) 2024-10-31 08:53:27 -03:00
archive.go refactor: rename archive.Copying to archive.Copy (#5233) 2024-10-31 08:53:27 -03:00