Skip to content

Commit e4d48bd

Browse files
committed
fix golangci-lint warnings
1 parent 961b3fe commit e4d48bd

File tree

17 files changed

+35
-35
lines changed

17 files changed

+35
-35
lines changed

events/alb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type ALBTargetGroupRequestContext struct {
2020

2121
// ELBContext contains the information to identify the ARN invoking the lambda
2222
type ELBContext struct {
23-
TargetGroupArn string `json:"targetGroupArn"` //nolint: stylecheck
23+
TargetGroupArn string `json:"targetGroupArn"` //nolint: staticcheck
2424
}
2525

2626
// ALBTargetGroupResponse configures the response to be returned by the ALB Lambda target group for the request

events/apigw.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ type APIGatewayRequestIdentity struct {
208208
SourceIP string `json:"sourceIp"`
209209
CognitoAuthenticationType string `json:"cognitoAuthenticationType,omitempty"`
210210
CognitoAuthenticationProvider string `json:"cognitoAuthenticationProvider,omitempty"`
211-
UserArn string `json:"userArn,omitempty"` //nolint: stylecheck
211+
UserArn string `json:"userArn,omitempty"` //nolint: staticcheck
212212
UserAgent string `json:"userAgent"`
213213
User string `json:"user,omitempty"`
214214
ClientCert *APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert `json:"clientCert,omitempty"`
@@ -317,7 +317,7 @@ type APIGatewayV2CustomAuthorizerV1RequestTypeRequestContext struct {
317317
type APIGatewayV2CustomAuthorizerV1Request struct {
318318
Version string `json:"version"`
319319
Type string `json:"type"`
320-
MethodArn string `json:"methodArn"` //nolint: stylecheck
320+
MethodArn string `json:"methodArn"` //nolint: staticcheck
321321
IdentitySource string `json:"identitySource"`
322322
AuthorizationToken string `json:"authorizationToken"`
323323
Resource string `json:"resource"`
@@ -333,7 +333,7 @@ type APIGatewayV2CustomAuthorizerV1Request struct {
333333
type APIGatewayV2CustomAuthorizerV2Request struct {
334334
Version string `json:"version"`
335335
Type string `json:"type"`
336-
RouteArn string `json:"routeArn"` //nolint: stylecheck
336+
RouteArn string `json:"routeArn"` //nolint: staticcheck
337337
IdentitySource []string `json:"identitySource"`
338338
RouteKey string `json:"routeKey"`
339339
RawPath string `json:"rawPath"`
@@ -372,13 +372,13 @@ type APIGatewayCustomAuthorizerRequestTypeRequestContext struct {
372372
type APIGatewayCustomAuthorizerRequest struct {
373373
Type string `json:"type"`
374374
AuthorizationToken string `json:"authorizationToken"`
375-
MethodArn string `json:"methodArn"` //nolint: stylecheck
375+
MethodArn string `json:"methodArn"` //nolint: staticcheck
376376
}
377377

378378
// APIGatewayCustomAuthorizerRequestTypeRequest contains data coming in to a custom API Gateway authorizer function.
379379
type APIGatewayCustomAuthorizerRequestTypeRequest struct {
380380
Type string `json:"type"`
381-
MethodArn string `json:"methodArn"` //nolint: stylecheck
381+
MethodArn string `json:"methodArn"` //nolint: staticcheck
382382
Resource string `json:"resource"`
383383
Path string `json:"path"`
384384
HTTPMethod string `json:"httpMethod"`

events/attributevalue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type DynamoDBAttributeValue struct {
2020

2121
// This struct represents DynamoDBAttributeValue which doesn't
2222
// implement fmt.Stringer interface and safely `fmt.Sprintf`able
23-
type dynamoDbAttributeValue DynamoDBAttributeValue //nolint: stylecheck
23+
type dynamoDbAttributeValue DynamoDBAttributeValue //nolint: staticcheck
2424

2525
// Binary provides access to an attribute of type Binary.
2626
// Method panics if the attribute is not of type Binary.

events/code_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type CodeCommitRecord struct {
5252
EventPartNumber uint64 `json:"eventPartNumber"`
5353
CodeCommit CodeCommitCodeCommit `json:"codecommit"`
5454
EventName string `json:"eventName"`
55-
EventTriggerConfigId string `json:"eventTriggerConfigId"` //nolint: stylecheck
55+
EventTriggerConfigId string `json:"eventTriggerConfigId"` //nolint: staticcheck
5656
EventSourceARN string `json:"eventSourceARN"`
5757
UserIdentityARN string `json:"userIdentityARN"`
5858
EventSource string `json:"eventSource"`

events/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ type ConfigEvent struct {
77
// The ID of the AWS account that owns the rule
88
AccountID string `json:"accountId"`
99
// The ARN that AWS Config assigned to the rule
10-
ConfigRuleArn string `json:"configRuleArn"` //nolint:stylecheck
11-
ConfigRuleID string `json:"configRuleId"` //nolint:stylecheck
10+
ConfigRuleArn string `json:"configRuleArn"` //nolint:staticcheck
11+
ConfigRuleID string `json:"configRuleId"` //nolint:staticcheck
1212
// The name that you assigned to the rule that caused AWS Config to publish the event
1313
ConfigRuleName string `json:"configRuleName"`
1414
// A boolean value that indicates whether the AWS resource to be evaluated has been removed from the rule's scope
1515
EventLeftScope bool `json:"eventLeftScope"`
16-
ExecutionRoleArn string `json:"executionRoleArn"` //nolint:stylecheck
16+
ExecutionRoleArn string `json:"executionRoleArn"` //nolint:staticcheck
1717
// If the event is published in response to a resource configuration change, this value contains a JSON configuration item
1818
InvokingEvent string `json:"invokingEvent"`
1919
// A token that the function must pass to AWS Config with the PutEvaluations call

events/dynamodb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type DynamoDBEventRecord struct {
5656
EventVersion string `json:"eventVersion"`
5757

5858
// The event source ARN of DynamoDB
59-
EventSourceArn string `json:"eventSourceARN"` //nolint: stylecheck
59+
EventSourceArn string `json:"eventSourceARN"` //nolint: staticcheck
6060

6161
// Items that are deleted by the Time to Live process after expiration have
6262
// the following fields:

events/firehose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package events
55
// KinesisFirehoseEvent represents the input event from Amazon Kinesis Firehose. It is used as the input parameter.
66
type KinesisFirehoseEvent struct {
77
InvocationID string `json:"invocationId"`
8-
DeliveryStreamArn string `json:"deliveryStreamArn"` //nolint: stylecheck
9-
SourceKinesisStreamArn string `json:"sourceKinesisStreamArn"` //nolint: stylecheck
8+
DeliveryStreamArn string `json:"deliveryStreamArn"` //nolint: staticcheck
9+
SourceKinesisStreamArn string `json:"sourceKinesisStreamArn"` //nolint: staticcheck
1010
Region string `json:"region"`
1111
Records []KinesisFirehoseEventRecord `json:"records"`
1212
}

events/kinesis.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ type KinesisTimeWindowEventResponse struct {
2020
}
2121

2222
type KinesisEventRecord struct {
23-
AwsRegion string `json:"awsRegion"` //nolint: stylecheck
23+
AwsRegion string `json:"awsRegion"` //nolint: staticcheck
2424
EventID string `json:"eventID"`
2525
EventName string `json:"eventName"`
2626
EventSource string `json:"eventSource"`
27-
EventSourceArn string `json:"eventSourceARN"` //nolint: stylecheck
27+
EventSourceArn string `json:"eventSourceARN"` //nolint: staticcheck
2828
EventVersion string `json:"eventVersion"`
29-
InvokeIdentityArn string `json:"invokeIdentityArn"` //nolint: stylecheck
29+
InvokeIdentityArn string `json:"invokeIdentityArn"` //nolint: staticcheck
3030
Kinesis KinesisRecord `json:"kinesis"`
3131
}
3232

events/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type S3Entity struct {
4444
type S3Bucket struct {
4545
Name string `json:"name"`
4646
OwnerIdentity S3UserIdentity `json:"ownerIdentity"`
47-
Arn string `json:"arn"` //nolint: stylecheck
47+
Arn string `json:"arn"` //nolint: staticcheck
4848
}
4949

5050
type S3Object struct {

events/sns.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type SNSEvent struct {
1212

1313
type SNSEventRecord struct {
1414
EventVersion string `json:"EventVersion"`
15-
EventSubscriptionArn string `json:"EventSubscriptionArn"` //nolint: stylecheck
15+
EventSubscriptionArn string `json:"EventSubscriptionArn"` //nolint: staticcheck
1616
EventSource string `json:"EventSource"`
1717
SNS SNSEntity `json:"Sns"`
1818
}
@@ -21,7 +21,7 @@ type SNSEntity struct {
2121
Signature string `json:"Signature"`
2222
MessageID string `json:"MessageId"`
2323
Type string `json:"Type"`
24-
TopicArn string `json:"TopicArn"` //nolint: stylecheck
24+
TopicArn string `json:"TopicArn"` //nolint: staticcheck
2525
MessageAttributes map[string]interface{} `json:"MessageAttributes"`
2626
SignatureVersion string `json:"SignatureVersion"`
2727
Timestamp time.Time `json:"Timestamp"`

0 commit comments

Comments
 (0)