localstack/localstack

View on GitHub

Showing 40 of 3,140 total issues

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

@aws_provider()
def resourcegroupstaggingapi():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.resourcegroupstaggingapi.provider import (
        ResourcegroupstaggingapiProvider,
Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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

@aws_provider(api="s3", name="default")
def s3():
    from localstack.services.s3.v3.provider import S3Provider

    provider = S3Provider()
Severity: Major
Found in localstack/services/providers.py and 7 other locations - About 40 mins to fix
localstack/services/providers.py on lines 61..66
localstack/services/providers.py on lines 162..167
localstack/services/providers.py on lines 170..175
localstack/services/providers.py on lines 257..262
localstack/services/providers.py on lines 265..270
localstack/services/providers.py on lines 357..362
localstack/services/providers.py on lines 373..378

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def iam():
    from localstack.services.iam.provider import IamProvider
    from localstack.services.moto import MotoFallbackDispatcher

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def route53resolver():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.route53resolver.provider import Route53ResolverProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def ses():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.ses.provider import SesProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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

@aws_provider(api="stepfunctions", name="v2")
def stepfunctions_v2():
    from localstack.services.stepfunctions.provider import StepFunctionsProvider

    provider = StepFunctionsProvider()
Severity: Major
Found in localstack/services/providers.py and 7 other locations - About 40 mins to fix
localstack/services/providers.py on lines 61..66
localstack/services/providers.py on lines 162..167
localstack/services/providers.py on lines 170..175
localstack/services/providers.py on lines 249..254
localstack/services/providers.py on lines 257..262
localstack/services/providers.py on lines 265..270
localstack/services/providers.py on lines 357..362

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def route53():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.route53.provider import Route53Provider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def ec2():
    from localstack.services.ec2.provider import Ec2Provider
    from localstack.services.moto import MotoFallbackDispatcher

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def sts():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.sts.provider import StsProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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

@aws_provider(api="cloudwatch", name="v2")
def cloudwatch_v2():
    from localstack.services.cloudwatch.provider_v2 import CloudwatchProvider

    provider = CloudwatchProvider()
Severity: Major
Found in localstack/services/providers.py and 7 other locations - About 40 mins to fix
localstack/services/providers.py on lines 162..167
localstack/services/providers.py on lines 170..175
localstack/services/providers.py on lines 249..254
localstack/services/providers.py on lines 257..262
localstack/services/providers.py on lines 265..270
localstack/services/providers.py on lines 357..362
localstack/services/providers.py on lines 373..378

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def acm():
    from localstack.services.acm.provider import AcmProvider
    from localstack.services.moto import MotoFallbackDispatcher

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def s3control():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.s3control.provider import S3ControlProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def logs():
    from localstack.services.logs.provider import LogsProvider
    from localstack.services.moto import MotoFallbackDispatcher

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def ssm():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.ssm.provider import SsmProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def secretsmanager():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.secretsmanager.provider import SecretsmanagerProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def sns():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.sns.provider import SnsProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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

@aws_provider(api="lambda", name="v2")
def lambda_v2():
    from localstack.services.lambda_.provider import LambdaProvider

    provider = LambdaProvider()
Severity: Major
Found in localstack/services/providers.py and 7 other locations - About 40 mins to fix
localstack/services/providers.py on lines 61..66
localstack/services/providers.py on lines 162..167
localstack/services/providers.py on lines 249..254
localstack/services/providers.py on lines 257..262
localstack/services/providers.py on lines 265..270
localstack/services/providers.py on lines 357..362
localstack/services/providers.py on lines 373..378

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 34.

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

@aws_provider(api="lambda", name="asf")
def lambda_asf():
    from localstack.services.lambda_.provider import LambdaProvider

    provider = LambdaProvider()
Severity: Major
Found in localstack/services/providers.py and 7 other locations - About 40 mins to fix
localstack/services/providers.py on lines 61..66
localstack/services/providers.py on lines 170..175
localstack/services/providers.py on lines 249..254
localstack/services/providers.py on lines 257..262
localstack/services/providers.py on lines 265..270
localstack/services/providers.py on lines 357..362
localstack/services/providers.py on lines 373..378

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def redshift():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.redshift.provider import RedshiftProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 407..413
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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 18 locations. Consider refactoring.
Open

@aws_provider()
def swf():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.swf.provider import SWFProvider

Severity: Major
Found in localstack/services/providers.py and 17 other locations - About 40 mins to fix
localstack/services/providers.py on lines 8..14
localstack/services/providers.py on lines 90..96
localstack/services/providers.py on lines 115..121
localstack/services/providers.py on lines 124..130
localstack/services/providers.py on lines 178..184
localstack/services/providers.py on lines 195..201
localstack/services/providers.py on lines 204..210
localstack/services/providers.py on lines 213..219
localstack/services/providers.py on lines 273..279
localstack/services/providers.py on lines 282..288
localstack/services/providers.py on lines 291..297
localstack/services/providers.py on lines 300..306
localstack/services/providers.py on lines 309..315
localstack/services/providers.py on lines 330..336
localstack/services/providers.py on lines 416..424
localstack/services/providers.py on lines 436..442
localstack/services/providers.py on lines 445..451

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 34.

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