CMSgov/dpc-app

View on GitHub
lambda/opt-out-import/parsers.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ParseSQSEvent has 5 return statements (exceeds 4 allowed).
Open

func ParseSQSEvent(event events.SQSEvent) (*events.S3Event, error) {
    var snsEntity events.SNSEntity
    err := json.Unmarshal([]byte(event.Records[0].Body), &snsEntity)

    unmarshalTypeErr := new(json.UnmarshalTypeError)
Severity: Major
Found in lambda/opt-out-import/parsers.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status