Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update golangci/golangci-lint docker tag to v1.61 #568

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ services:
security_opt: [no-new-privileges:true]

golint:
image: golangci/golangci-lint:v1.60-alpine # Image page: <https://hub.docker.com/r/golangci/golangci-lint>
image: golangci/golangci-lint:v1.61-alpine # Image page: <https://hub.docker.com/r/golangci/golangci-lint>
environment:
GOLANGCI_LINT_CACHE: /tmp/golint # <https://github.com/golangci/golangci-lint/blob/v1.33.0/internal/cache/default.go#L68>
volumes:
Expand Down
2 changes: 1 addition & 1 deletion internal/http/handlers/api_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (s *apiSession) ApiSessionGetAllRequests(c echo.Context, sessionUuid api.Se

var result = make([]api.SessionRequest, 0, len(requests))

for i := range len(requests) {
for i := range requests {
result = append(result, s.convertStoredRequestToApiStruct(requests[i]))
}

Expand Down
4 changes: 2 additions & 2 deletions internal/http/middlewares/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func New( //nolint:funlen,gocognit,gocyclo
) echo.MiddlewareFunc {
var ignoreHeaderPrefixes = make([]string, len(cfg.IgnoreHeaderPrefixes))

for i := range len(cfg.IgnoreHeaderPrefixes) {
for i := range cfg.IgnoreHeaderPrefixes {
ignoreHeaderPrefixes[i] = strings.ToUpper(strings.TrimSpace(cfg.IgnoreHeaderPrefixes[i])) // normalize each
}

Expand Down Expand Up @@ -174,7 +174,7 @@ loop:
if len(ignorePrefixes) > 0 {
upperName := strings.ToUpper(name)

for i := range len(ignorePrefixes) {
for i := range ignorePrefixes {
if strings.HasPrefix(upperName, ignorePrefixes[i]) {
continue loop
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pubsub/inmemory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestInMemory_PublishAndReceive(t *testing.T) {

assert.Len(t, receivedEvents, 2)

for j := range len(receivedEvents) {
for j := range receivedEvents {
if event := receivedEvents[j]; event != event1 && event != event2 {
t.Error("received events must be one of expected")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pubsub/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestRedis_PublishAndReceive(t *testing.T) {

assert.Len(t, receivedEvents, 2)

for j := range len(receivedEvents) {
for j := range receivedEvents {
if e := receivedEvents[j]; !eventsAreEquals(t, e, event1) && !eventsAreEquals(t, e, event2) {
t.Errorf("received events must be one of expected, but got: %+v", e)
}
Expand Down
8 changes: 4 additions & 4 deletions internal/storage/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (s *Redis) DeleteRequests(sessionUUID string) (bool, error) {
// removing plan
var keys = []string{key.requests()}

for i := range len(requestUUIDs) {
for i := range requestUUIDs {
keys = append(keys, key.request(requestUUIDs[i]))
}

Expand Down Expand Up @@ -194,7 +194,7 @@ func (s *Redis) CreateRequest(sessionUUID, clientAddr, method, uri string, conte
forUpdate = append(forUpdate, requestUUIDs...)
}

for i := range len(forUpdate) {
for i := range forUpdate {
pipe.Expire(s.ctx, key.request(forUpdate[i]), s.ttl)
}
}
Expand Down Expand Up @@ -256,7 +256,7 @@ func (s *Redis) GetAllRequests(sessionUUID string) ([]Request, error) {
// convert request UUIDs into storage keys
keys := make([]string, len(UUIDs))

for i := range len(UUIDs) {
for i := range UUIDs {
keys[i] = key.request(UUIDs[i])
}

Expand All @@ -266,7 +266,7 @@ func (s *Redis) GetAllRequests(sessionUUID string) ([]Request, error) {
return nil, gettingErr
}

for i := range len(UUIDs) {
for i := range UUIDs {
if packed, ok := rawRequests[i].(string); ok {
rData := redisRequest{}

Expand Down