kontron/python-ipmi

View on GitHub
pyipmi/msgs/picmg.py

Summary

Maintainability
F
1 wk
Test Coverage

File picmg.py has 652 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright (c) 2014  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: Major
Found in pyipmi/msgs/picmg.py - About 1 day to fix

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

            Bitfield('alarm_capabilities', 1,
                     Bitfield.Bit('critical_alarm', 1, 0),
                     Bitfield.Bit('major_alarm', 1, 0),
                     Bitfield.Bit('minor_alarm', 1, 0),
                     Bitfield.Bit('power_alarm', 1, 0),
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 1 other location - About 4 hrs to fix
    pyipmi/msgs/bmc.py on lines 133..141

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

    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 SendPowerChannelControlReq(PicmgMessage):
        __cmdid__ = constants.CMDID_POWER_CHANNEL_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 1 other location - About 3 hrs to fix
    pyipmi/msgs/vita.py on lines 247..257

    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 SetFanLevelReq(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FAN_LEVEL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 1 other location - About 2 hrs to fix
    pyipmi/msgs/dcmi.py on lines 60..68

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

    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 GetDeviceLocatorRecordIdRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_DEVLOC_RECORD_ID
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 2 other locations - About 1 hr to fix
    pyipmi/msgs/vita.py on lines 431..438
    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 4 locations. Consider refactoring.
    Open

    @register_message_class
    class GetPortStateRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_PORT_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 3 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 74..81
    pyipmi/msgs/picmg.py on lines 171..178
    pyipmi/msgs/picmg.py on lines 193..200

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

    @register_message_class
    class GetShelfAddressInfoRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_SHELF_ADDRESS_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 3 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 74..81
    pyipmi/msgs/picmg.py on lines 193..200
    pyipmi/msgs/picmg.py on lines 596..603

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

    @register_message_class
    class FruControlRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_FRU_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 3 other locations - About 1 hr to fix
    pyipmi/msgs/hpm.py on lines 74..81
    pyipmi/msgs/picmg.py on lines 171..178
    pyipmi/msgs/picmg.py on lines 596..603

    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 SetFruActivationReq(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FRU_ACTIVATION
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 FruControlReq(PicmgMessage):
        __cmdid__ = constants.CMDID_FRU_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetPowerLevelReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_POWER_LEVEL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFruLedStateReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FRU_LED_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION
    
    
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFruLedColorCapabilitiesReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FRU_LED_COLOR_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetPowerChannelStatusReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_POWER_CHANNEL_STATUS
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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/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
    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 21 locations. Consider refactoring.
    Open

    @register_message_class
    class SendPmHeartbeatRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_PM_HEARTBEAT
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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/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
    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 SetFruActivationRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FRU_ACTIVATION
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SetFruLedStateRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FRU_LED_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SetSignalingClassRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_CHANNEL_SIGNALING_CLASS
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SendPowerChannelControlRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_POWER_CHANNEL_CONTROL
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SetFanLevelRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FAN_LEVEL
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SetFruActivationPolicyRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_FRU_ACTIVATION_POLICY
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 SetPortStateRsp(PicmgMessage):
        __cmdid__ = constants.CMDID_SET_PORT_STATE
        __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFanSpeedPropertiesReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FAN_SPEED_PROPERTIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetAddressInfoReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_ADDRESS_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 16 other locations - About 1 hr to fix
    pyipmi/msgs/dcmi.py on lines 35..41
    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
    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 GetFruControlCapabilitiesReq(PicmgMessage):
        __cmdid__ = constants.CMDID_FRU_CONTROL_CAPABILITIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFanLevelReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FAN_LEVEL
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFruActivationPolicyReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FRU_ACTIVATION_POLICY
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetTelcoAlarmCapabilityReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_TELCO_ALARM_CAPABILITY
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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/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
    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 GetDeviceLocatorRecordIdReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_DEVLOC_RECORD_ID
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 GetFruLedPropertiesReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_FRU_LED_PROPERTIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 3 locations. Consider refactoring.
    Open

            Bitfield('policy', 1,
                     Bitfield.Bit('activation_locked', 1, default=0),
                     Bitfield.Bit('deactivation_locked', 1, default=0),
                     Bitfield.ReservedBit(6),),
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 2 other locations - About 55 mins to fix
    pyipmi/msgs/picmg.py on lines 237..240
    pyipmi/msgs/picmg.py on lines 241..244

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

            Bitfield('mask', 1,
                     Bitfield.Bit('activation_locked', 1, default=0),
                     Bitfield.Bit('deactivation_locked', 1, default=0),
                     Bitfield.ReservedBit(6),),
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 2 other locations - About 55 mins to fix
    pyipmi/msgs/picmg.py on lines 241..244
    pyipmi/msgs/picmg.py on lines 275..278

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

            Bitfield('set', 1,
                     Bitfield.Bit('activation_locked', 1, default=0),
                     Bitfield.Bit('deactivation_locked', 1, default=0),
                     Bitfield.ReservedBit(6),),
    Severity: Major
    Found in pyipmi/msgs/picmg.py and 2 other locations - About 55 mins to fix
    pyipmi/msgs/picmg.py on lines 237..240
    pyipmi/msgs/picmg.py on lines 275..278

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

    @register_message_class
    class GetShelfAddressInfoReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_SHELF_ADDRESS_INFO
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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/vita.py on lines 40..45
    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

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

    @register_message_class
    class GetPicmgPropertiesReq(PicmgMessage):
        __cmdid__ = constants.CMDID_GET_PICMG_PROPERTIES
        __netfn__ = constants.NETFN_GROUP_EXTENSION
        __fields__ = (
    Severity: Major
    Found in pyipmi/msgs/picmg.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 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
    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 3 locations. Consider refactoring.
    Open

            Bitfield('properties', 1,
                     Bitfield.Bit('power_level', 5, 0),
                     Bitfield.ReservedBit(2, 0),
                     Bitfield.Bit('dynamic_power_configuration', 1, 0),),
    Severity: Minor
    Found in pyipmi/msgs/picmg.py and 2 other locations - About 30 mins to fix
    pyipmi/msgs/device_messaging.py on lines 244..247
    pyipmi/msgs/device_messaging.py on lines 431..434

    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