Skip to content

Commit

Permalink
ARCO-209: fix statticcheck comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Oct 29, 2024
1 parent 5c579e6 commit 32cefdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ linters-settings:
disabled: true
- name: modifies-value-receiver # disable for our custom marshalling
disabled: true
- name: comment-spacings # disable for staticcheck ignore comments
disabled: true


rowserrcheck:
Expand Down
2 changes: 1 addition & 1 deletion cmd/arc/services/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func setAPIEcho(logger *slog.Logger, arcConfig *config.ArcConfig) *echo.Echo {
return func(c echo.Context) error {
req := c.Request()
//nolint:staticcheck // use string key on purpose
reqCtx := context.WithValue(req.Context(), arc_logger.EventIDField, uuid.New().String()) // lint:ignore SA1029 use string key on purpose
reqCtx := context.WithValue(req.Context(), arc_logger.EventIDField, uuid.New().String()) //lint:ignore SA1029 use string key on purpose
c.SetRequest(req.WithContext(reqCtx))

return next(c)
Expand Down
2 changes: 1 addition & 1 deletion internal/grpc_opts/grpc_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func GetGRPCServerOpts(logger *slog.Logger, prometheusEndpoint string, grpcMessa
id := event.GetEventId()
if id != "" {
//nolint:staticcheck // use string key on purpose
ctx = context.WithValue(ctx, arc_logger.EventIDField, event.GetEventId()) // lint:ignore SA1029 use string key on purpose
ctx = context.WithValue(ctx, arc_logger.EventIDField, event.GetEventId()) //lint:ignore SA1029 use string key on purpose
}
}

Expand Down

0 comments on commit 32cefdc

Please sign in to comment.