hackedteam/vector-edk

View on GitHub

Showing 3,985 of 13,510 total issues

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

class InfUserExtensionItem():
    def __init__(self,
                 Content = '',
                 UserId = '',
                 IdString = ''):
BaseTools/Source/Python/UPT/Object/Parser/InfPackagesObject.py on lines 28..56

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

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

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

        if self._ValueList[2] != '':
            InfPcdValueList = GetSplitValueList(TokenList[1], TAB_VALUE_SPLIT, 1)
            if InfPcdValueList[0] in ['True', 'true', 'TRUE']:
                self._ValueList[2] = TokenList[1].replace(InfPcdValueList[0], '1', 1);
            elif InfPcdValueList[0] in ['False', 'false', 'FALSE']:
BaseTools/Source/Python/Workspace/MetaFileParser.py on lines 720..725

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

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

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

        if self._ValueList[2] != '':
            InfPcdValueList = GetSplitValueList(TokenList[1], TAB_VALUE_SPLIT, 1)
            if InfPcdValueList[0] in ['True', 'true', 'TRUE']:
                self._ValueList[2] = TokenList[1].replace(InfPcdValueList[0], '1', 1);
            elif InfPcdValueList[0] in ['False', 'false', 'FALSE']:
Severity: Major
Found in BaseTools/Source/Python/Workspace/MetaFileParser.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py on lines 641..646

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

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

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

vector-uefi/fd/efi/StdLib/lib/python.27/distutils/errors.py on lines 0..88

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

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

    try:
        return "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x" % (
                int(GuidValueList[0], 16),
                int(GuidValueList[1], 16),
                int(GuidValueList[2], 16),
Severity: Major
Found in BaseTools/Source/Python/UPT/Library/Misc.py and 2 other locations - About 1 day to fix
BaseTools/Source/Python/Common/Misc.py on lines 134..146
BaseTools/Source/Python/Common/Misc.py on lines 162..173

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

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

    try:
        return "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x" % (
                int(guidValueList[0], 16),
                int(guidValueList[1], 16),
                int(guidValueList[2], 16),
Severity: Major
Found in BaseTools/Source/Python/Common/Misc.py and 2 other locations - About 1 day to fix
BaseTools/Source/Python/Common/Misc.py on lines 162..173
BaseTools/Source/Python/UPT/Library/Misc.py on lines 96..108

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

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

    return "%08x_%04x_%04x_%02x%02x_%02x%02x%02x%02x%02x%02x" % (
            int(guidValueList[0], 16),
            int(guidValueList[1], 16),
            int(guidValueList[2], 16),
            int(guidValueList[3], 16),
Severity: Major
Found in BaseTools/Source/Python/Common/Misc.py and 2 other locations - About 1 day to fix
BaseTools/Source/Python/Common/Misc.py on lines 134..146
BaseTools/Source/Python/UPT/Library/Misc.py on lines 96..108

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

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

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

Severity: Major
Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/errors.py and 1 other location - About 1 day to fix
AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/errors.py on lines 0..88

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

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

if __name__ == '__main__':
    # Initialize log system
    EdkLogger.Initialize()
    EdkLogger.IsRaiseError = False
    EdkLogger.quiet(time.strftime("%H:%M:%S, %b.%d %Y ", time.localtime()) + "[00:00]" + "\n")
Severity: Major
Found in BaseTools/Source/Python/Ecc/Ecc.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/Eot/Eot.py on lines 637..648

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

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

if __name__ == '__main__':
    # Initialize log system
    EdkLogger.Initialize()
    EdkLogger.IsRaiseError = False
    EdkLogger.quiet(time.strftime("%H:%M:%S, %b.%d %Y ", time.localtime()) + "[00:00]" + "\n")
Severity: Major
Found in BaseTools/Source/Python/Eot/Eot.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/Ecc/Ecc.py on lines 384..395

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

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

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

                if self._Version < 0x00010005:
                    if self._SectionType in [MODEL_META_DATA_BUILD_OPTION,
                                             MODEL_EFI_LIBRARY_CLASS,
                                             MODEL_META_DATA_PACKAGE,
                                             MODEL_PCD_FIXED_AT_BUILD,
BaseTools/Source/Python/Workspace/MetaFileParser.py on lines 543..564

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

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

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

                if self._Version < 0x00010005:
                    if self._SectionType in [MODEL_META_DATA_BUILD_OPTION,
                                             MODEL_EFI_LIBRARY_CLASS,
                                             MODEL_META_DATA_PACKAGE,
                                             MODEL_PCD_FIXED_AT_BUILD,
Severity: Major
Found in BaseTools/Source/Python/Workspace/MetaFileParser.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py on lines 476..497

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

Severity: Major
Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py and 11 other locations - About 1 day to fix
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_le.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_be.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_16_le.py on lines 0..34
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_32_be.py on lines 0..29
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_7.py on lines 0..30
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/utf_8.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_be.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_16_le.py on lines 0..34
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_be.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_32_le.py on lines 0..29
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_7.py on lines 0..30
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/utf_8.py on lines 0..34

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

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