hackedteam/vector-edk

View on GitHub
vector-uefi/fd/tool/chipsec/hal/pcidb.py

Summary

Maintainability
F
1 mo
Test Coverage

File pcidb.py has 9633 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/local/bin/python
#CHIPSEC: Platform Security Assessment Framework
#Copyright (c) 2010-2014, Intel Corporation
# 
#This program is free software; you can redistribute it and/or
Severity: Major
Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py - About 1 mo to fix

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

    0x1119 : { 0x0000 : "PCI SCSI RAID Controller",
               0x0001 : "PCI 1-channel SCSI RAID Controller",
               0x0002 : "PCI 1-channel SCSI RAID Controller",
               0x0003 : "PCI 2-channel SCSI RAID Controller",
               0x0004 : "PCI 3-channel SCSI RAID Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 day to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 1832..1902

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

    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

    0x0E11 : { 0x0001 : "PCI to EISA Bridge",
               0x0002 : "PCI to ISA Bridge",
               0x000F : "StorageWorks Library Adapter (HVD)",
               0x0012 : "686P7",
               0x0046 : "Smart Array 6400 Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 day to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5672..5742

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

    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

    0x14F1 : { 0x0F00 : "cx11252-11",
               0x0F30 : "0x14F1",
               0x1031 : "332",
               0x1033 : "RH56D",
               0x1033 : "RH56D",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 7 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4217..4275
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6333..6391

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

    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

    0x10B7 : { 0x0001 : "1000BaseSX Gigabit Etherlink",
               0x0013 : "3Com11a/b/g Wireless PCI Adapter ",
               0x1000 : "3COM 3C905CX-TXNM with 40-0664-003 ASIC",
               0x1006 : "Broadcom Corporation NetXtreme BCM5701 Gigabit Ethernet",
               0x1007 : "V.90 Mini-PCI Modem",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 7 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6333..6391
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7714..7772

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

    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

    0x11C1 : { 0x0440 : "Data+Fax+Voice+DSVD",
               0x0441 : "modem driver",
               0x0442 : "LT WinModem 56K Data+Fax",
               0x0443 : "1646T00",
               0x0444 : "845G",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 7 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4217..4275
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7714..7772

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

    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

    0x9005 : { 0x0010 : "AHA-2940U2W/U2B",
               0x0011 : "AHA-2930U2 Ultra2 SCSI Host Adapter",
               0x0013 : "SCSI Controller",
               0x001F : "Ultra2-Wide SCSI controller",
               0x0020 : "SCSI Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 7 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3691..3746

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

    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

    0x105A : { 0x0262 : "Ultra66/FastTrak66",
               0x0D30 : "MBUltra100/MBFastTrack100 Lite",
               0x0D38 : "FastTrak66 Lite EIDE Controller",
               0x105A : "EIDE Controller",
               0x1275 : "MBUltra133",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 7 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 9537..9592

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

    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

    0x168C : { 0x001c : "pciven_10ac&dev_ooo",
               0x0002 : "Atheros AR5B95 Wireless LAN 802.11 a/b/g/n Controller",
               0x0003 : "TP-LINK 450Mbps Wireless N Adapter",
               0x0007 : "Wireless Network Adapter",
               0x0011 : "11a/b/g Wireless LAN Mini PCI Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 4 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5909..5948

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

    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

    0x114F : { 0x0002 : "ACPINSC6001",
               0x0003 : "",
               0x0004 : "driver",
               0x0005 : "",
               0x0006 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 4 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8089..8128

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

    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

    0x1033 : { 0x0001 : "PCI to 486 like bus Bridge",
               0x0002 : "PCI to VL98 Bridge",
               0x0003 : "ATM Controller",
               0x0004 : "PCI bus Bridge",
               0x0005 : "PCI to 486 like peripheral bus Bridge",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 4 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4165..4202

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

    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

    0x10B5 : { 0x0324 : "",
               0x0480 : "Integrated PowerPC I/O Processor",
               0x0960 : "PCI Reference Design Kit for PCI 9080",
               0x1030 : "ISDN card",
               0x1054 : "dual channel ISDN card",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 4 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3177..3214

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

    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

    0x1022 : { 0x1100 : "HyperTransport Technology Configuration",
               0x1101 : "Address Map",
               0x1102 : "AMD Hammer - DRAM Controller ",
               0x1103 : "AMD Hammer - Miscellaneous Control ",
               0x2000 : "PCnet LANCE PCI Ethernet Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 4 hrs to fix
    AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/morse.py on lines 14..51

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

    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

    0x102B : { 0x0010 : "Impression?",
               0x0040 : "Matrox P650 very new model (20080724)",
               0x051 : "matrox",
               0x0518 : "Atlas GUI Accelerator",
               0x0519 : "Strorm GUI Accelerator",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 3 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5982..6016

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

    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

    0x1166 : { 0x0005 : "PCI to PCI Bridge",
               0x0006 : "Host Bridge",
               0x0007 : "CPU to PCI Bridge",
               0x0008 : "Hostbridge & MCH",
               0x0009 : "AGP interface",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 3 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3103..3137

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

    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

    0x1013 : { 0x0038 : "pci",
               0x0040 : "Flat Panel GUI Accelerator",
               0x004C : "64-bit Accelerated LCD/CRT Controller",
               0x00A0 : "GUI Accelerator",
               0x00A2 : "Alpine GUI Accelerator",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 3 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3795..3824

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

    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

    0x106B : { 0x0001 : "PowerPC Host-PCI Bridge",
               0x0002 : "I/O Controller",
               0x0003 : "",
               0x0004 : "Video-in",
               0x0007 : "I/O Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 3 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2778..2807

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

    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

    0x1103 : { 0x0003 : "HPT 343/345/363",
               0x0004 : "HPT366/368/370/370A/372",
               0x0005 : "HPT372/372N",
               0x0006 : "HPT302",
               0x0007 : "HPT371",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5334..5362

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

    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

    0x1102 : { 0x0002 : "Sound Blaster audigy! (Also Live! 5.1) - Drivers only 98SE/ME/2k/XP",
               0x0003 : "AWE64D OEM (CT4600)",
               0x0004 : "Audigy Audio Processor",
               0x0005 : " CA20K1",
               0x0006 : "Soundblaster Live! 5.1 (SB0200)",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5364..5392

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

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

    0x100B : { 0x0001 : "10/100 Ethernet MAC",
               0x0002 : "PCI-IDE DMA Master Mode Interface Ctrlr",
               0x000E : "Legacy I/O Controller",
               0x000F : "IEEE 1394 OHCI Controller",
               0x0011 : "PCI System I/O",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5793..5820
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6046..6073
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6525..6552

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

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

    0x1179 : { 0x8136 : "Realtek 10/100/1000 PCI-E NIC Family",
               0x0102 : "Trusted Platform Module",
               0x0103 : "Extended PCI IDE Controller Type-B",
               0x0117 : "PCIVEN_10EC&DEV_8136&SUBSYS_184103C&REV_054&87C21B2&0&00E3",
               0x0404 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2710..2737
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5793..5820
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6525..6552

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

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

    0x1131 : { 0x0011 : "Ethernet Controller",
               0x1001 : "BlueTooth Адаптер ISSCBTA [Tripper USB Dongle]",
               0x1131 : "VerTV Hybrid Super 007 M135RA",
               0x1131 : "01384E42y8",
               0x1201 : "VPN IPSEC coprocessor",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2710..2737
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6046..6073
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6525..6552

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

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

    0x1217 : { 0x00f7 : "1394 Open Host Controller Interface",
               0x1217 : "111111111",
               0x6729 : "PCI to PCMCIA Bridge",
               0x673A : "PCI to PCMCIA Bridge",
               0x6832 : "CardBus Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2710..2737
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5793..5820
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6046..6073

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

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

    0x1077 : { 0x1016 : "Single Channel Ultra3 SCSI Processor",
               0x1020 : "Fast-wide SCSI - Sparc PCI",
               0x1022 : "Fast-wide SCSI",
               0x1080 : "SCSI Host Adapter",
               0x1216 : "Dual Channel Ultra3 SCSI Processor",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3068..3094
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6807..6833
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7276..7302

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

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

    0x1028 : { 0x0001 : "Expandable RAID Controller (PERC) (SCSI)",
               0x0002 : "Expandable RAID Controller",
               0x0003 : "Expandable RAID Controller",
               0x0004 : "Expandable RAID Controller",
               0x0005 : "Expandable RAID Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3853..3879
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6807..6833
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7276..7302

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

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

    0x12C4 : { 0x0001 : "",
               0x0002 : "",
               0x0003 : "",
               0x0004 : "",
               0x0005 : "BlueHeat 8 Port RS232 Serial Board",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3068..3094
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3853..3879
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7276..7302

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

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

    0x1407 : { 0x0100 : "Lava Dual Serial 550 PCI",
               0x0101 : "Lava Quattro PCI A/B",
               0x0102 : "Lava Quattro PCI C/D",
               0x0110 : "Lava DSerial PCI Port A",
               0x0111 : "Lava DSerial PCI Port B",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3068..3094
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3853..3879
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6807..6833

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

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

    0x1060 : { 0x0001 : "486 Chipset",
               0x0002 : "ISA Bridge",
               0x0101 : "EIDE Controller",
               0x0881 : "HB4 486 PCI Chipset",
               0x0886 : "ISA Bridge",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6082..6107
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7464..7489
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8226..8251

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

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

    0x1180 : { 0x0475 : "Cardbus Controller",
               0x0476 : "RICOH SmartCard Reader",
               0x0478 : "Cardbus Controller",
               0x0552 : "FireWire (IEEE 1394) Controller",
               0x0575 : "I11fXI  <a href=",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3753..3778
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7464..7489
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8226..8251

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

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

    0x1814 : { 0x0001 : "...B742000",
               0x0101 : "2460  802.11b",
               0x0201 : "PCIVEN_1814&DEV_3090&SUBSYS_1451033",
               0x0201 : "RT 3070",
               0x0201 : "001167F044E5",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3753..3778
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6082..6107
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7464..7489

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

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

    0x14DB : { 0x2100 : "download drivers",
               0x2101 : "",
               0x2102 : "",
               0x2110 : "OX16PCI952",
               0x2111 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3753..3778
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6082..6107
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8226..8251

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

    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

    0x1045 : { 0x0005 : "",
               0xA0F8 : "PCI USB Controller",
               0xC101 : "GUI Accelerator",
               0xC178 : "pci usb card 2- port",
               0xC556 : "Viper",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2752..2776
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4102..4126

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

    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

    0x1011 : { 0x0001 : "PCI-PCI Bridge",
               0x0002 : "Tulip Ethernet Adapter",
               0x0004 : "PCI Graphics Accelerator",
               0x0007 : "NV-RAM",
               0x0008 : "SCSI to SCSI Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3427..3451
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4102..4126

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

    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

    0x109E : { 0x0350 : "rb8701.1",
               0x0350 : "tv tuner driverhj",
               0x0351 : "BrookTree Bt848 Video Capture Device - Audio Section    PCI",
               0x0369 : "Video Capture",
               0x036C : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2752..2776
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3427..3451

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

    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

    0x1133 : { 0x7711 : "",
               0x7901 : "",
               0x7902 : "",
               0x7911 : "",
               0x7912 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4067..4090
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5750..5773

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

    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

    0x1095 : { 0x0240 : "SIL3112",
               0x0242 : "SIL3132",
               0x0244 : "SIL3132",
               0x0640 : "PCI0640A/B",
               0x0641 : "pci0640",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5750..5773
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5822..5845

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

    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

    0x111D : { 0x0001 : "NICStAR ATM Adapter",
               0x0003 : "MICRO ABR SAR PCI ATM Controller",
               0x0004 : "MICRO ABR SAR PCI ATM Controller",
               0x7603 : "IDT High Definition Audio CODECj",
               0x7605 : "IDT High Definition Audio CODEC",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 2 other locations - About 2 hrs to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4067..4090
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5822..5845

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

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

    0x107E : { 0x0001 : "FRED Local Bus I/F to PCI Peripheral",
               0x0002 : "100 vg anylan Cntrlr",
               0x0004 : "Fibre Channel Host Adapter",
               0x0005 : "Fibre Channel Host Adapter",
               0x0008 : "(i)chipSAR+ 155 MBit ATM controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3990..4012
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7818..7840
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8439..8461

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

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

    0x1092 : { 0x00A0 : "GUI Accelerator",
               0x00A8 : "GUI Accelerator",
               0x0550 : "",
               0x08D4 : "WinModem",
               0x094C : "SupraExpress 56i Pro",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3899..3921
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7818..7840
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8439..8461

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

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

    0x1524 : { 0x0751 : "pci",
               0x0100 : "ENE CIR Receiver",
               0x0510 : "PCI Memory Card Reader Controller",
               0x0530 : "Memory Stick Card Reader",
               0x0550 : "Secure Digital Card Reader",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3899..3921
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3990..4012
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8439..8461

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

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

    0x4144 : { 0x0040 : "Virtex-E Bridge",
               0x0041 : "Virtex-II Bridge",
               0x0042 : "Virtex-II Bridge",
               0x0043 : "Virtex-II Pro Bridge",
               0x0044 : "Virtex-II Pro PCI/PCI-X Bridge",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3899..3921
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3990..4012
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7818..7840

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

    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

    0x1191 : { 0x0001 : "IDE Ctrlr",
               0x0002 : "UltraDMA33 EIDE Controller (AEC6210UF)",
               0x0003 : "SCSI-2 cache Cntrlr",
               0x0004 : "UltraDMA33 EIDE Controller",
               0x0005 : "UltraDMA33 EIDE Controller (AEC6210UF)",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5292..5313

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

    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

    0x10FA : { 0x0000 : "GUI Accelerator",
               0x0001 : "GUI Accelerator",
               0x0002 : "GUI Accelerator",
               0x0003 : "GUI Accelerator",
               0x0004 : "GUI Accelerator",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6168..6189

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

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

    0x1393 : { 0x1010 : "",
               0x1020 : "",
               0x1022 : "unknown",
               0x1040 : "Smartio",
               0x1041 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2682..2702
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4134..4154
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5153..5173
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6111..6131
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7338..7358

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

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

    0x1004 : { 0x0005 : "DEV_0200",
               0x0006 : "ISA Bridge",
               0x0007 : "Wildcat System Controller",
               0x0008 : "Wildcat ISA Bridge",
               0x0009 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4134..4154
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5153..5173
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6111..6131
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7126..7146
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7338..7358

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

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

    0x10A9 : { 0x0004 : "",
               0x0005 : "",
               0x0006 : "",
               0x0007 : "",
               0x0008 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2682..2702
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5153..5173
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6111..6131
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7126..7146
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7338..7358

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

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

    0x10E8 : { 0x0002 : "PCI card",
               0x2011 : "Video Capture/Edit board",
               0x4750 : "Amcc PCI MatchMaker",
               0x5920 : "amcc",
               0x8033 : "Transputer Link Interface",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2682..2702
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4134..4154
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6111..6131
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7126..7146
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7338..7358

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

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

    0x1186 : { 0x0100 : "Ethernet Adapter",
               0x1002 : "Fast Ethernet Adapter",
               0x1100 : "Fast Ethernet Adapter",
               0x1300 : "Realtek RTL8139 Family PCI Fast Ethernet Adapter",
               0x1301 : "Fast Ethernet Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2682..2702
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4134..4154
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5153..5173
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7126..7146
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7338..7358

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

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

    0x1425 : { 0x0030 : "T310 10GbE Single Port Adapter",
               0x31 : "T320 10GbE Dual Port Adapter",
               0x32 : "T302 1GbE Dual Port Adapter",
               0x33 : "T304 1GbE Quad Port Adapter",
               0x34 : "B320 10GbE Dual Port Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 6 other locations - About 1 hr to fix
    BaseTools/Source/Python/Eot/FvImage.py on lines 987..1008
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 2682..2702
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4134..4154
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5153..5173
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6111..6131
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7126..7146

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

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

    0x3D3D : { 0x0001 : "GLint 300SX",
               0x0002 : "GLint 500TX",
               0x0003 : "GLint",
               0x0004 : "3C0SX",
               0x0005 : "Permedia",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7065..7084
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7315..7334
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7883..7902

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

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

    0x1415 : { 0x8401 : "PCI Interface to local bus",
               0x8403 : "PCI Parallel Card",
               0x9500 : "Quad UART (disabled)",
               0x9501 : "Quad UART",
               0x9505 : "Dual UART",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7065..7084
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7883..7902
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8404..8423

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

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

    0x1360 : { 0x0101 : "DCF77 Radio Clock",
               0x0102 : "DCF77 Radio Clock",
               0x0103 : "DCF77 Radio Clock",
               0x0104 : "DCF77 Radio Clock",
               0x0105 : "DCF77 Receiver",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7315..7334
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7883..7902
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8404..8423

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

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

    0x1571 : { 0xA001 : "GHB",
               0xA002 : "ARCnet",
               0xA003 : "ARCnet",
               0xA004 : "ARCnet",
               0xA005 : "ARCnet",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7065..7084
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7315..7334
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8404..8423

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

    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

    0x1050 : { 0x6692 : "PCI BusISDN S/T-Controller",
               0x0000 : "Ethernet Controller (NE2000 compatible)",
               0x0001 : "PCI/IDE controller",
               0x0033 : "Winbond W89C33 mPCI 802.11 Wireless LAN Adapter",
               0x0105 : "Ethernet Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8298..8316

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

    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

    0x1969 : { 0x1026 : "PCI-E ETHERNET CONTROLLER ",
               0x1048 : "Gigabit Ethernet 10/100/1000 Base-T Controller",
               0x1060 : "PCI-E Fast Ethernet Controller",
               0x1062 : "Atheros AR8132 PCI-E &#1050;&#1086;&#1085;&#1090;&#1088;&#1086;&#1083;&#1083;&#1077;&#1088; Fast Eth",
               0x1062 : "Gigabit Ethernet 10/100/1000 Base-T Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3623..3641

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

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

    0x125D : { 0x0000 : "PCI Fax Modem (early model)",
               0x1961 : "ESS Solo-1 Soundcard",
               0x1968 : "Maestro-2 PCI audio accelerator",
               0x1969 : "Solo-1 PCI AudioDrive family",
               0x1978 : "ESS Maestro-2E PCI Audiodrive",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 4 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5255..5272
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6282..6299
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6413..6430
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8322..8339

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

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

    0x197B : { 0x0250 : "JMC250 PCI Express",
               0x0256 : "JMC260 PCI Express Fast Ethernet",
               0x0260 : "JMC260 PCI Express Fast Ethernet",
               0x1234 : "1234567",
               0x197b : "JMB38X SD/MMC Host Controller ",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 4 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5255..5272
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6282..6299
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6413..6430
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6657..6674

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

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

    0x11B0 : { 0x0001 : "i960 Local Bus to PCI Bridge",
               0x0002 : "i960Jx Local Bus to PCI Bridge",
               0x0004 : "i960Cx/Hx Local Bus to PCI Bridge",
               0x0010 : "Am29K Local Bus to PCI Bridge",
               0x0021 : "i960Sx Local Bus to PCI Bridge",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 4 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5255..5272
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6413..6430
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6657..6674
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8322..8339

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

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

    0x11D4 : { 0x11D4 : "AD1988B",
               0x11d4 : "266e&subsys",
               0x1535 : "ADSP-21535",
               0x1805 : "62412-51",
               0x1884 : "AD1884HD",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 4 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 5255..5272
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6282..6299
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6657..6674
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8322..8339

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

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

    0x10EE : { 0x0004 : "Virtex 4 FPGA",
               0x0007 : "Virtex V FPGA",
               0x0105 : "Fibre Channel",
               0x0106 : "data compression device",
               0x0314 : "Communications Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 4 other locations - About 1 hr to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6282..6299
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6413..6430
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6657..6674
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8322..8339

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

    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

    0x118D : { 0x0001 : "Raptor-PCI framegrabber",
               0x0012 : "Road Runner Frame Grabber",
               0x0014 : "Road Runner Frame Grabber",
               0x0024 : "Road Runner Frame Grabber",
               0x0044 : "Road Runner Frame Grabber",
    Severity: Minor
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 55 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6568..6584

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

    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

    0x1223 : { 0x0001 : "KatanaQp",
               0x0002 : "KosaiPM",
               0x0016 : "PCIe-8120",
               0x003 : "Katana3752",
               0x004 : "Katana3750",
    Severity: Minor
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 1 other location - About 55 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6138..6154

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

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

    0x108E : { 0x0001 : "",
               0x1000 : "PCI Input/Output Controller",
               0x1001 : "Happy Meal Ethernet",
               0x1100 : "",
               0x1101 : "",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 45 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3155..3170
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3834..3849
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6301..6316

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

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

    0x102F : { 0x0009 : "CPU Bridge",
               0x000A : "CPU Bridge?",
               0x0020 : "ATM PCI Adapter",
               0x0030 : "8086",
               0x0031 : "Integrated 10/100 Mbit Ethernet Controller",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 45 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3834..3849
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3965..3980
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6301..6316

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

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

    0x1073 : { 0x0001 : "3D graphics Cntrlr",
               0x0002 : "RPA3 3D-Graphics Controller",
               0x0003 : "",
               0x0004 : "PCI Audio Controller",
               0x0005 : "DS1 Audio",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 45 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3155..3170
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3965..3980
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6301..6316

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

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

    0x11B5 : { 0x0001 : "1553 Bus Interface Card",
               0x0002 : "FLASH memory Card",
               0x0003 : "Multi Media Adapter",
               0x0004 : "Video Graphics Overlay",
               0x0005 : "PPzero Slave Interface Card",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 3 other locations - About 45 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3155..3170
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3834..3849
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3965..3980

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

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

    0x144A : { 0x348A : "Low-profile High-Performance IEEE488 GPIB Interface Card for PCI Bus",
               0x7230 : "",
               0x7248 : "PLX PCI9052",
               0x7250 : "PLX PCI9052",
               0x7256 : "PCI-7256 16-CH Latching Relay & 16-CH Isolated Digital Input Card",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 5 other locations - About 35 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3949..3963
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4434..4448
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6840..6854
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8264..8278
    vector-uefi/fd/tool/chipsec/hal/uefi_common.py on lines 319..319

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

    0x18C9 : { 0x1011 : "Video processor",
               0x1012 : "Video processor",
               0x1013 : "Video processor",
               0x1014 : "Video processor",
               0x1015 : "Video processor",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 5 other locations - About 35 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3949..3963
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4434..4448
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6840..6854
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7370..7384
    vector-uefi/fd/tool/chipsec/hal/uefi_common.py on lines 319..319

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

    0x10DC : { 0x0001 : "PCI-SCI  PMC  mezzanine",
               0x0002 : "SCI bridge  on PCI 5 Volt card",
               0x0004 : "ALTERA STRATIX",
               0x0010 : "Simple PMC/PCI to S-LINK interface",
               0x0011 : "Simple S-LINK to PMC/PCI interface",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 5 other locations - About 35 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3949..3963
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6840..6854
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7370..7384
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8264..8278
    vector-uefi/fd/tool/chipsec/hal/uefi_common.py on lines 319..319

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

    0x12C7 : { 0x0546 : "D120JCT-LS Card",
               0x0561 : "BRI/2 Type Card (Voice Driver)",
               0x0647 : "D/240JCT-T1 Card",
               0x0648 : "D/300JCT-E1 Card",
               0x0649 : "D/300JCT-E1 Card",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 5 other locations - About 35 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 3949..3963
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4434..4448
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7370..7384
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8264..8278
    vector-uefi/fd/tool/chipsec/hal/uefi_common.py on lines 319..319

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

    0x108D : { 0x0001 : "Token-Ring 16/4 PCI Adapter",
               0x0002 : "Fastload 16/4 PCI/III Token Ring Adapter",
               0x0004 : "RapidFire Token Ring 16/4 Adapter",
               0x0005 : "GoCard Token Ring 16/4 Adapter",
               0x0006 : "RapidFire Token Ring 100 Adapter",
    Severity: Major
    Found in vector-uefi/fd/tool/chipsec/hal/pcidb.py and 5 other locations - About 35 mins to fix
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 4434..4448
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 6840..6854
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 7370..7384
    vector-uefi/fd/tool/chipsec/hal/pcidb.py on lines 8264..8278
    vector-uefi/fd/tool/chipsec/hal/uefi_common.py on lines 319..319

    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

    There are no issues that match your filters.

    Category
    Status