evalphobia/aws-sdk-go-v2-wrapper

View on GitHub

Showing 1,082 of 1,082 total issues

SSM has 122 methods (exceeds 20 allowed). Consider refactoring.
Open

func (svc *SSM) RawAddTagsToResource(ctx context.Context, in *SDK.AddTagsToResourceInput) (*SDK.AddTagsToResourceResponse, error) {
    return svc.client.AddTagsToResourceRequest(in).Send(ctx)
}
Severity: Major
Found in ssm/client__raw_api.go - About 2 days to fix

    Pinpoint has 112 methods (exceeds 20 allowed). Consider refactoring.
    Open

    func (svc *Pinpoint) RawCreateApp(ctx context.Context, in *SDK.CreateAppInput) (*SDK.CreateAppResponse, error) {
        return svc.client.CreateAppRequest(in).Send(ctx)
    }
    Severity: Major
    Found in pinpoint/client__raw_api.go - About 2 days to fix

      File type.go has 1027 lines of code (exceeds 500 allowed). Consider refactoring.
      Open

      package dynamodb
      
      import (
          "fmt"
          "strconv"
      Severity: Major
      Found in dynamodb/type.go - About 1 day to fix

        S3 has 87 methods (exceeds 20 allowed). Consider refactoring.
        Open

        func (svc *S3) RawAbortMultipartUpload(ctx context.Context, in *SDK.AbortMultipartUploadInput) (*SDK.AbortMultipartUploadResponse, error) {
            return svc.client.AbortMultipartUploadRequest(in).Send(ctx)
        }
        Severity: Major
        Found in s3/client__raw_api.go - About 1 day to fix

          SES has 71 methods (exceeds 20 allowed). Consider refactoring.
          Open

          func (svc *SES) RawCloneReceiptRuleSet(ctx context.Context, in *SDK.CloneReceiptRuleSetInput) (*SDK.CloneReceiptRuleSetResponse, error) {
              return svc.client.CloneReceiptRuleSetRequest(in).Send(ctx)
          }
          Severity: Major
          Found in ses/client__raw_api.go - About 1 day to fix

            File type_campaign.go has 804 lines of code (exceeds 500 allowed). Consider refactoring.
            Open

            package pinpoint
            
            import (
                SDK "github.com/aws/aws-sdk-go-v2/service/pinpoint"
                "github.com/evalphobia/aws-sdk-go-v2-wrapper/private/pointers"
            Severity: Major
            Found in pinpoint/type_campaign.go - About 1 day to fix

              Method XConditions.Build has a Cognitive Complexity of 61 (exceeds 20 allowed). Consider refactoring.
              Open

              func (x XConditions) Build() (expression.Expression, error) {
                  b := expression.NewBuilder()
              
                  if len(x.KeyConditions) != 0 {
                      kc, err := x.KeyConditions[0].KeyCondition()
              Severity: Minor
              Found in dynamodb/xtype_condition.go - About 7 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              package sqs
              
              import (
                  "context"
              
              
              Severity: Major
              Found in sqs/client_op_send_message_batch.go and 1 other location - About 6 hrs to fix
              sqs/client_op_delete_message_batch.go on lines 1..62

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 457.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              package sqs
              
              import (
                  "context"
              
              
              Severity: Major
              Found in sqs/client_op_delete_message_batch.go and 1 other location - About 6 hrs to fix
              sqs/client_op_send_message_batch.go on lines 1..63

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 457.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              KMS has 46 methods (exceeds 20 allowed). Consider refactoring.
              Open

              func (svc *KMS) RawCancelKeyDeletion(ctx context.Context, in *SDK.CancelKeyDeletionInput) (*SDK.CancelKeyDeletionResponse, error) {
                  return svc.client.CancelKeyDeletionRequest(in).Send(ctx)
              }
              Severity: Minor
              Found in kms/client__raw_api.go - About 6 hrs to fix

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package pinpoint
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/pinpoint"
                
                
                Severity: Major
                Found in pinpoint/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package ssm
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/ssm"
                
                
                Severity: Major
                Found in ssm/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                package pinpoint
                
                import (
                    "context"
                
                
                Severity: Major
                Found in pinpoint/client_op_get_segments.go and 1 other location - About 5 hrs to fix
                pinpoint/client_op_get_import_jobs.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package athena
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/athena"
                
                
                Severity: Major
                Found in athena/client.go and 7 other locations - About 5 hrs to fix
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package pinpointemail
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/pinpointemail"
                
                
                Severity: Major
                Found in pinpointemail/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package dynamodb
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/dynamodb"
                
                
                Severity: Major
                Found in dynamodb/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package cloudwatchlogs
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs"
                
                
                Severity: Major
                Found in cloudwatchlogs/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                package pinpoint
                
                import (
                    "context"
                
                
                Severity: Major
                Found in pinpoint/client_op_get_import_jobs.go and 1 other location - About 5 hrs to fix
                pinpoint/client_op_get_segments.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package kms
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/kms"
                
                
                Severity: Major
                Found in kms/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                sqs/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 8 locations. Consider refactoring.
                Open

                package sqs
                
                import (
                    SDK "github.com/aws/aws-sdk-go-v2/service/sqs"
                
                
                Severity: Major
                Found in sqs/client.go and 7 other locations - About 5 hrs to fix
                athena/client.go on lines 1..59
                cloudwatchlogs/client.go on lines 1..59
                dynamodb/client.go on lines 1..59
                kms/client.go on lines 1..59
                pinpoint/client.go on lines 1..59
                pinpointemail/client.go on lines 1..59
                ssm/client.go on lines 1..59

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 422.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Severity
                Category
                Status
                Source
                Language