Skip to content

Commit

Permalink
chore(deps): update golangci/golangci-lint docker tag to v1.61 (#568)
Browse files Browse the repository at this point in the history
* chore(deps): update golangci/golangci-lint docker tag to v1.61

* wip: πŸ”• temporary commit

* wip: πŸ”• temporary commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paramtamtam <[email protected]>
  • Loading branch information
renovate[bot] and tarampampam authored Sep 11, 2024
1 parent dfa91f8 commit 5b49045
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
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

0 comments on commit 5b49045

Please sign in to comment.