kontron/python-ipmi

View on GitHub
pyipmi/msgs/vita.py

Summary

Maintainability
F
1 wk
Test Coverage

File vita.py has 482 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright (c) 2021  Kontron Europe GmbH
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
Severity: Minor
Found in pyipmi/msgs/vita.py - About 7 hrs to fix

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

    @register_message_class
    class VitaSetFruLedStateReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_FRU_LED_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 1 other location - About 3 hrs to fix
    pyipmi/msgs/picmg.py on lines 694..704

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

    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

            Bitfield('activation_policy_mask', 1,
                     Bitfield.Bit('activation_lock', 1, default=0),
                     Bitfield.Bit('deactivation_lock', 1, default=0),
                     Bitfield.Bit('commanded_deactivation_ignored', 1, default=0),
                     Bitfield.Bit('default_activation_locked', 1, default=0),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 3 other locations - About 3 hrs to fix
    pyipmi/msgs/vita.py on lines 289..294
    pyipmi/msgs/vita.py on lines 355..360
    pyipmi/msgs/vita.py on lines 391..396

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

    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

            Bitfield('activation_policy_set', 1,
                     Bitfield.Bit('activation_lock', 1, default=0),
                     Bitfield.Bit('deactivation_lock', 1, default=0),
                     Bitfield.Bit('commanded_deactivation_ignored', 1, default=0),
                     Bitfield.Bit('default_activation_locked', 1, default=0),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 3 other locations - About 3 hrs to fix
    pyipmi/msgs/vita.py on lines 289..294
    pyipmi/msgs/vita.py on lines 349..354
    pyipmi/msgs/vita.py on lines 391..396

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

    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

            Bitfield('activation_policies', 1,
                     Bitfield.Bit('activation_lock', 1, default=0),
                     Bitfield.Bit('deactivation_lock', 1, default=0),
                     Bitfield.Bit('commanded_deactivation_ignored', 1, default=0),
                     Bitfield.Bit('default_activation_locked', 1, default=0),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 3 other locations - About 3 hrs to fix
    pyipmi/msgs/vita.py on lines 289..294
    pyipmi/msgs/vita.py on lines 349..354
    pyipmi/msgs/vita.py on lines 355..360

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

    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

            Bitfield('state', 1,
                     Bitfield.Bit('ipmc_control', 1, default=0),
                     Bitfield.Bit('override', 1, default=0),
                     Bitfield.Bit('lamp_test', 1, default=0),
                     Bitfield.Bit('hardware_restrict', 1, default=0),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 3 other locations - About 3 hrs to fix
    pyipmi/msgs/vita.py on lines 349..354
    pyipmi/msgs/vita.py on lines 355..360
    pyipmi/msgs/vita.py on lines 391..396

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

    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

    @register_message_class
    class VitaGetPayloadModeCapabilitiesRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_PAYLOAD_MODE_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 1 other location - About 2 hrs to fix
    pyipmi/msgs/hpm.py on lines 241..249

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

    @register_message_class
    class VitaGetFruLedPropertiesRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_LED_PROPERTIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 1 other location - About 2 hrs to fix
    pyipmi/msgs/hpm.py on lines 220..228

    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

    @register_message_class
    class VitaGetDeviceLocatorRecordRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_DEVICE_LOCATOR_RECORD_ID
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 2 other locations - About 1 hr to fix
    pyipmi/msgs/picmg.py on lines 313..320
    pyipmi/msgs/vita.py on lines 507..514

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

    @register_message_class
    class VitaGetFruHashRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_HASH
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 2 other locations - About 1 hr to fix
    pyipmi/msgs/picmg.py on lines 313..320
    pyipmi/msgs/vita.py on lines 431..438

    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

            Bitfield('ipmb_capabilities', 1,
                     Bitfield.Bit('number_ipmbs', 2, default=0),
                     Bitfield.ReservedBit(2, 0),
                     Bitfield.Bit('max_frequency', 2, default=0),
                     Bitfield.ReservedBit(2, 0)),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 1 other location - About 1 hr to fix
    pyipmi/msgs/vita.py on lines 56..60

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

    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

            Bitfield('ipmc_identifier', 1,
                     Bitfield.Bit('tier_functionality', 2, default=0),
                     Bitfield.ReservedBit(2, 0),
                     Bitfield.Bit('layer_functionality', 2, default=0),
                     Bitfield.ReservedBit(2, 0)),
    Severity: Major
    Found in pyipmi/msgs/vita.py and 1 other location - About 1 hr to fix
    pyipmi/msgs/vita.py on lines 61..65

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

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

    @register_message_class
    class VitaSetFruActivationReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_FRU_ACTIVATION
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 63..70
    pyipmi/msgs/hpm.py on lines 104..111
    pyipmi/msgs/hpm.py on lines 148..155
    pyipmi/msgs/picmg.py on lines 182..189
    pyipmi/msgs/picmg.py on lines 282..289
    pyipmi/msgs/picmg.py on lines 351..358
    pyipmi/msgs/picmg.py on lines 383..390
    pyipmi/msgs/picmg.py on lines 507..515
    pyipmi/msgs/picmg.py on lines 718..725
    pyipmi/msgs/vita.py on lines 164..171
    pyipmi/msgs/vita.py on lines 207..214
    pyipmi/msgs/vita.py on lines 271..278
    pyipmi/msgs/vita.py on lines 542..549

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

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

    @register_message_class
    class VitaGetFruLedCapabilitiesReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_LED_COLOR_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 63..70
    pyipmi/msgs/hpm.py on lines 104..111
    pyipmi/msgs/hpm.py on lines 148..155
    pyipmi/msgs/picmg.py on lines 182..189
    pyipmi/msgs/picmg.py on lines 282..289
    pyipmi/msgs/picmg.py on lines 351..358
    pyipmi/msgs/picmg.py on lines 383..390
    pyipmi/msgs/picmg.py on lines 507..515
    pyipmi/msgs/picmg.py on lines 718..725
    pyipmi/msgs/vita.py on lines 164..171
    pyipmi/msgs/vita.py on lines 271..278
    pyipmi/msgs/vita.py on lines 400..407
    pyipmi/msgs/vita.py on lines 542..549

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

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

    @register_message_class
    class VitaGetFruLedStateReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_LED_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 63..70
    pyipmi/msgs/hpm.py on lines 104..111
    pyipmi/msgs/hpm.py on lines 148..155
    pyipmi/msgs/picmg.py on lines 182..189
    pyipmi/msgs/picmg.py on lines 282..289
    pyipmi/msgs/picmg.py on lines 351..358
    pyipmi/msgs/picmg.py on lines 383..390
    pyipmi/msgs/picmg.py on lines 507..515
    pyipmi/msgs/picmg.py on lines 718..725
    pyipmi/msgs/vita.py on lines 164..171
    pyipmi/msgs/vita.py on lines 207..214
    pyipmi/msgs/vita.py on lines 400..407
    pyipmi/msgs/vita.py on lines 542..549

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

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

    @register_message_class
    class VitaFruControlReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_FRU_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 63..70
    pyipmi/msgs/hpm.py on lines 104..111
    pyipmi/msgs/hpm.py on lines 148..155
    pyipmi/msgs/picmg.py on lines 182..189
    pyipmi/msgs/picmg.py on lines 282..289
    pyipmi/msgs/picmg.py on lines 351..358
    pyipmi/msgs/picmg.py on lines 383..390
    pyipmi/msgs/picmg.py on lines 507..515
    pyipmi/msgs/picmg.py on lines 718..725
    pyipmi/msgs/vita.py on lines 207..214
    pyipmi/msgs/vita.py on lines 271..278
    pyipmi/msgs/vita.py on lines 400..407
    pyipmi/msgs/vita.py on lines 542..549

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

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

    @register_message_class
    class VitaSetPayloadModeReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_PAYLOAD_MODE
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 63..70
    pyipmi/msgs/hpm.py on lines 104..111
    pyipmi/msgs/hpm.py on lines 148..155
    pyipmi/msgs/picmg.py on lines 182..189
    pyipmi/msgs/picmg.py on lines 282..289
    pyipmi/msgs/picmg.py on lines 351..358
    pyipmi/msgs/picmg.py on lines 383..390
    pyipmi/msgs/picmg.py on lines 507..515
    pyipmi/msgs/picmg.py on lines 718..725
    pyipmi/msgs/vita.py on lines 164..171
    pyipmi/msgs/vita.py on lines 207..214
    pyipmi/msgs/vita.py on lines 271..278
    pyipmi/msgs/vita.py on lines 400..407

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

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

    @register_message_class
    class VitaFruControlRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_FRU_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaSetFruStatePolicyRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_FRU_STATE_POLICY_BITS
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaSetChassisIdentifierRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_CHASSIS_IDENTIFIER
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaGetChassisAddressTableInfoRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_CHASSIS_ADDRESS_TABLE_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaGetChassisIdentifierRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_CHASSIS_IDENTIFIER
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaSetFruLedStateRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_FRU_LED_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaSetFruActivationRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_FRU_ACTIVATION
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 332..338
    pyipmi/msgs/vita.py on lines 364..370

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

    @register_message_class
    class VitaSetIpmbStateRsp(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_IPMB_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 94..100
    pyipmi/msgs/hpm.py on lines 115..121
    pyipmi/msgs/hpm.py on lines 159..165
    pyipmi/msgs/hpm.py on lines 201..207
    pyipmi/msgs/hpm.py on lines 262..268
    pyipmi/msgs/picmg.py on lines 248..254
    pyipmi/msgs/picmg.py on lines 293..299
    pyipmi/msgs/picmg.py on lines 449..455
    pyipmi/msgs/picmg.py on lines 497..503
    pyipmi/msgs/picmg.py on lines 574..580
    pyipmi/msgs/picmg.py on lines 622..628
    pyipmi/msgs/picmg.py on lines 708..714
    pyipmi/msgs/picmg.py on lines 761..767
    pyipmi/msgs/vita.py on lines 84..90
    pyipmi/msgs/vita.py on lines 135..141
    pyipmi/msgs/vita.py on lines 154..160
    pyipmi/msgs/vita.py on lines 175..181
    pyipmi/msgs/vita.py on lines 261..267
    pyipmi/msgs/vita.py on lines 364..370
    pyipmi/msgs/vita.py on lines 411..417

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

    @register_message_class
    class VitaGetFruLedPropertiesReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_LED_PROPERTIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaGetDeviceLocatorRecordReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_DEVICE_LOCATOR_RECORD_ID
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaGetMandatorySensorNumbersReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_MANDATORY_SENSOR_NUMBERS
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaGetFruStatePolicyReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_STATE_POLICY_BITS
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaGetFruAddressInfoReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_ADDRESS_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaFruControlCapabilitiesReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_FRU_CONTROL_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503
    pyipmi/msgs/vita.py on lines 518..524

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

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

    @register_message_class
    class VitaGetPayloadModeCapabilitiesReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_PAYLOAD_MODE_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 497..503

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

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

    @register_message_class
    class VitaGetFruHashReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_FRU_HASH
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    pyipmi/msgs/picmg.py on lines 127..133
    pyipmi/msgs/picmg.py on lines 204..210
    pyipmi/msgs/picmg.py on lines 258..264
    pyipmi/msgs/picmg.py on lines 303..309
    pyipmi/msgs/picmg.py on lines 324..330
    pyipmi/msgs/picmg.py on lines 411..417
    pyipmi/msgs/picmg.py on lines 459..465
    pyipmi/msgs/picmg.py on lines 771..777
    pyipmi/msgs/vita.py on lines 94..100
    pyipmi/msgs/vita.py on lines 185..191
    pyipmi/msgs/vita.py on lines 374..380
    pyipmi/msgs/vita.py on lines 421..427
    pyipmi/msgs/vita.py on lines 442..448
    pyipmi/msgs/vita.py on lines 469..475
    pyipmi/msgs/vita.py on lines 518..524

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

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

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

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

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

    Refactorings

    Further Reading

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

    @register_message_class
    class VitaGetChassisIdentifierReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_CHASSIS_IDENTIFIER
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 11 other locations - About 30 mins to fix
    pyipmi/msgs/hpm.py on lines 28..33
    pyipmi/msgs/hpm.py on lines 85..90
    pyipmi/msgs/hpm.py on lines 169..174
    pyipmi/msgs/hpm.py on lines 211..216
    pyipmi/msgs/hpm.py on lines 232..237
    pyipmi/msgs/hpm.py on lines 253..258
    pyipmi/msgs/picmg.py on lines 105..110
    pyipmi/msgs/picmg.py on lines 162..167
    pyipmi/msgs/vita.py on lines 40..45
    pyipmi/msgs/vita.py on lines 75..80
    pyipmi/msgs/vita.py on lines 145..150

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

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

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

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

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

    Refactorings

    Further Reading

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

    @register_message_class
    class VitaGetChassisAddressTableInfoReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_CHASSIS_ADDRESS_TABLE_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 11 other locations - About 30 mins to fix
    pyipmi/msgs/hpm.py on lines 28..33
    pyipmi/msgs/hpm.py on lines 85..90
    pyipmi/msgs/hpm.py on lines 169..174
    pyipmi/msgs/hpm.py on lines 211..216
    pyipmi/msgs/hpm.py on lines 232..237
    pyipmi/msgs/hpm.py on lines 253..258
    pyipmi/msgs/picmg.py on lines 105..110
    pyipmi/msgs/picmg.py on lines 162..167
    pyipmi/msgs/vita.py on lines 40..45
    pyipmi/msgs/vita.py on lines 126..131
    pyipmi/msgs/vita.py on lines 145..150

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

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

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

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

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

    Refactorings

    Further Reading

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

    @register_message_class
    class VitaSetChassisIdentifierReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_SET_CHASSIS_IDENTIFIER
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 11 other locations - About 30 mins to fix
    pyipmi/msgs/hpm.py on lines 28..33
    pyipmi/msgs/hpm.py on lines 85..90
    pyipmi/msgs/hpm.py on lines 169..174
    pyipmi/msgs/hpm.py on lines 211..216
    pyipmi/msgs/hpm.py on lines 232..237
    pyipmi/msgs/hpm.py on lines 253..258
    pyipmi/msgs/picmg.py on lines 105..110
    pyipmi/msgs/picmg.py on lines 162..167
    pyipmi/msgs/vita.py on lines 40..45
    pyipmi/msgs/vita.py on lines 75..80
    pyipmi/msgs/vita.py on lines 126..131

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

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

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

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

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

    Refactorings

    Further Reading

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

    @register_message_class
    class VitaGetVsoCapabilitiesReq(VitaMessage):
        __cmdid__ = constants.CMDID_VITA_GET_VSO_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/vita.py and 11 other locations - About 30 mins to fix
    pyipmi/msgs/hpm.py on lines 28..33
    pyipmi/msgs/hpm.py on lines 85..90
    pyipmi/msgs/hpm.py on lines 169..174
    pyipmi/msgs/hpm.py on lines 211..216
    pyipmi/msgs/hpm.py on lines 232..237
    pyipmi/msgs/hpm.py on lines 253..258
    pyipmi/msgs/picmg.py on lines 105..110
    pyipmi/msgs/picmg.py on lines 162..167
    pyipmi/msgs/vita.py on lines 75..80
    pyipmi/msgs/vita.py on lines 126..131
    pyipmi/msgs/vita.py on lines 145..150

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

    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