IBM/scc-python-sdk

View on GitHub

Showing 17 of 216 total issues

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

    @needscredentials
    def test_list_control_libraries_example(self):
        """
        list_control_libraries request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 528..554

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

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

    @needscredentials
    def test_list_profiles_example(self):
        """
        list_profiles request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 372..398

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

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

    @needscredentials
    def test_get_profile_attachment_example(self):
        """
        get_profile_attachment request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1266..1286
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1332..1352

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

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

    @needscredentials
    def test_get_provider_type_instance_example(self):
        """
        get_provider_type_instance request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 796..816
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1332..1352

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

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

    @needscredentials
    def test_delete_profile_attachment_example(self):
        """
        delete_profile_attachment request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 796..816
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1266..1286

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

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

    @needscredentials
    def test_get_provider_type_by_id_example(self):
        """
        get_provider_type_by_id request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_get_report_example(self):
        """
        get_report request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_get_report_violations_drift_example(self):
        """
        get_report_violations_drift request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_list_provider_type_instances_example(self):
        """
        list_provider_type_instances request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_delete_custom_profile_example(self):
        """
        delete_custom_profile request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_get_control_library_example(self):
        """
        get_control_library request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_get_report_tags_example(self):
        """
        get_report_tags request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_delete_custom_control_library_example(self):
        """
        delete_custom_control_library request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373

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

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

    @needscredentials
    def test_get_profile_example(self):
        """
        get_profile request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 982..1001
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

    @needscredentials
    def test_get_report_summary_example(self):
        """
        get_report_summary request example
        """
examples/test_security_and_compliance_center_api_v3_examples.py on lines 400..419
examples/test_security_and_compliance_center_api_v3_examples.py on lines 556..575
examples/test_security_and_compliance_center_api_v3_examples.py on lines 961..980
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1135..1154
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1156..1175
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1198..1217
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1219..1238
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1354..1373
examples/test_security_and_compliance_center_api_v3_examples.py on lines 1375..1394

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

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

with open('requirements.txt') as f:
    install_requires = [
        str(req) for req in pkg_resources.parse_requirements(f)
Severity: Minor
Found in setup.py and 1 other location - About 35 mins to fix
setup.py on lines 30..31

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

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

with open('requirements-dev.txt') as f:
    tests_require = [str(req) for req in pkg_resources.parse_requirements(f)]
Severity: Minor
Found in setup.py and 1 other location - About 35 mins to fix
setup.py on lines 26..28

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

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