lint: Update golangci-lint to v1.60 and fix issues #133

Closed
elebedeva wants to merge 1 commit from elebedeva/frostfs-http-gw:feat/lint-update-version into master
Member

Closes a part of TrueCloudLab/frostfs-node#1280

Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com

Closes a part of TrueCloudLab/frostfs-node#1280 Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
elebedeva added 1 commit 2024-08-22 17:42:57 +00:00
[#133] lint: Update golangci-lint to v1.60 and fix issues
Some checks reported warnings
/ Builds (1.21) (pull_request) Has been cancelled
/ Builds (1.22) (pull_request) Has been cancelled
/ DCO (pull_request) Has been cancelled
/ Lint (pull_request) Has been cancelled
/ Tests (1.21) (pull_request) Has been cancelled
/ Tests (1.22) (pull_request) Has been cancelled
/ Vulncheck (pull_request) Has been cancelled
26e683f90d
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
dkirillov reviewed 2024-08-23 06:23:51 +00:00
@ -36,3 +36,3 @@
t.Run(tc.Name, func(t *testing.T) {
contentType, data, err := readContentType(uint64(len(tc.Expected)),
func(sz uint64) (io.Reader, error) {
func(_ uint64) (io.Reader, error) {
Member

It's better don't use _

func(uint64) (io.Reader, error) {
It's better don't use `_` ```golang func(uint64) (io.Reader, error) { ```
Author
Member

Fixed!

Fixed!
dkirillov reviewed 2024-08-23 06:25:21 +00:00
@ -30,11 +30,6 @@ repos:
hooks:
- id: shellcheck
- repo: https://github.com/golangci/golangci-lint
Member

Do we drop this because we always use local golangci-lint?

Do we drop this because we always use local `golangci-lint`?
Author
Member

Yes, I don't see the need to run golangci-lint two times in a row.

Yes, I don't see the need to run `golangci-lint` two times in a row.
elebedeva force-pushed feat/lint-update-version from 26e683f90d to c6875030f6 2024-08-23 09:26:55 +00:00 Compare
elebedeva requested review from storage-services-committers 2024-08-23 09:28:52 +00:00
elebedeva requested review from storage-services-developers 2024-08-23 09:28:52 +00:00
dkirillov approved these changes 2024-08-23 09:53:21 +00:00
Author
Member

Update golangci-lint is done in PR #132, closing this one.

Update golangci-lint is done in PR #132, closing this one.
elebedeva closed this pull request 2024-08-23 10:51:56 +00:00
Some checks reported warnings
/ Builds (1.21) (pull_request) Has been cancelled
/ Builds (1.22) (pull_request) Has been cancelled
/ DCO (pull_request) Has been cancelled
/ Lint (pull_request) Has been cancelled
/ Tests (1.21) (pull_request) Has been cancelled
/ Tests (1.22) (pull_request) Has been cancelled
/ Vulncheck (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#133
No description provided.