kontron/python-ipmi

View on GitHub
pyipmi/msgs/picmg.py

Summary

Maintainability
F
1 wk
Test Coverage

File picmg.py has 653 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 136..144

    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 249..259

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

    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 433..440
    pyipmi/msgs/vita.py on lines 509..516

    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 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 75..82
    pyipmi/msgs/picmg.py on lines 173..180
    pyipmi/msgs/picmg.py on lines 598..605

    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 75..82
    pyipmi/msgs/picmg.py on lines 195..202
    pyipmi/msgs/picmg.py on lines 598..605

    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 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 75..82
    pyipmi/msgs/picmg.py on lines 173..180
    pyipmi/msgs/picmg.py on lines 195..202

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 184..191
    pyipmi/msgs/picmg.py on lines 353..360
    pyipmi/msgs/picmg.py on lines 385..392
    pyipmi/msgs/picmg.py on lines 509..517
    pyipmi/msgs/picmg.py on lines 720..727
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 184..191
    pyipmi/msgs/picmg.py on lines 284..291
    pyipmi/msgs/picmg.py on lines 353..360
    pyipmi/msgs/picmg.py on lines 385..392
    pyipmi/msgs/picmg.py on lines 720..727
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 184..191
    pyipmi/msgs/picmg.py on lines 284..291
    pyipmi/msgs/picmg.py on lines 353..360
    pyipmi/msgs/picmg.py on lines 509..517
    pyipmi/msgs/picmg.py on lines 720..727
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 184..191
    pyipmi/msgs/picmg.py on lines 284..291
    pyipmi/msgs/picmg.py on lines 353..360
    pyipmi/msgs/picmg.py on lines 385..392
    pyipmi/msgs/picmg.py on lines 509..517
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 184..191
    pyipmi/msgs/picmg.py on lines 284..291
    pyipmi/msgs/picmg.py on lines 385..392
    pyipmi/msgs/picmg.py on lines 509..517
    pyipmi/msgs/picmg.py on lines 720..727
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 64..71
    pyipmi/msgs/hpm.py on lines 105..112
    pyipmi/msgs/hpm.py on lines 149..156
    pyipmi/msgs/picmg.py on lines 284..291
    pyipmi/msgs/picmg.py on lines 353..360
    pyipmi/msgs/picmg.py on lines 385..392
    pyipmi/msgs/picmg.py on lines 509..517
    pyipmi/msgs/picmg.py on lines 720..727
    pyipmi/msgs/vita.py on lines 166..173
    pyipmi/msgs/vita.py on lines 209..216
    pyipmi/msgs/vita.py on lines 273..280
    pyipmi/msgs/vita.py on lines 402..409
    pyipmi/msgs/vita.py on lines 544..551

    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 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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/picmg.py on lines 763..769
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 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 95..101
    pyipmi/msgs/hpm.py on lines 116..122
    pyipmi/msgs/hpm.py on lines 160..166
    pyipmi/msgs/hpm.py on lines 202..208
    pyipmi/msgs/hpm.py on lines 263..269
    pyipmi/msgs/picmg.py on lines 250..256
    pyipmi/msgs/picmg.py on lines 295..301
    pyipmi/msgs/picmg.py on lines 451..457
    pyipmi/msgs/picmg.py on lines 499..505
    pyipmi/msgs/picmg.py on lines 576..582
    pyipmi/msgs/picmg.py on lines 624..630
    pyipmi/msgs/picmg.py on lines 710..716
    pyipmi/msgs/vita.py on lines 86..92
    pyipmi/msgs/vita.py on lines 137..143
    pyipmi/msgs/vita.py on lines 156..162
    pyipmi/msgs/vita.py on lines 177..183
    pyipmi/msgs/vita.py on lines 263..269
    pyipmi/msgs/vita.py on lines 334..340
    pyipmi/msgs/vita.py on lines 366..372
    pyipmi/msgs/vita.py on lines 413..419

    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 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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 461..467
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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 37..43
    pyipmi/msgs/picmg.py on lines 129..135
    pyipmi/msgs/picmg.py on lines 206..212
    pyipmi/msgs/picmg.py on lines 260..266
    pyipmi/msgs/picmg.py on lines 305..311
    pyipmi/msgs/picmg.py on lines 326..332
    pyipmi/msgs/picmg.py on lines 413..419
    pyipmi/msgs/picmg.py on lines 773..779
    pyipmi/msgs/vita.py on lines 96..102
    pyipmi/msgs/vita.py on lines 187..193
    pyipmi/msgs/vita.py on lines 376..382
    pyipmi/msgs/vita.py on lines 423..429
    pyipmi/msgs/vita.py on lines 444..450
    pyipmi/msgs/vita.py on lines 471..477
    pyipmi/msgs/vita.py on lines 499..505
    pyipmi/msgs/vita.py on lines 520..526

    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('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 239..242
    pyipmi/msgs/picmg.py on lines 277..280

    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('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 239..242
    pyipmi/msgs/picmg.py on lines 243..246

    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 243..246
    pyipmi/msgs/picmg.py on lines 277..280

    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 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 29..34
    pyipmi/msgs/hpm.py on lines 86..91
    pyipmi/msgs/hpm.py on lines 170..175
    pyipmi/msgs/hpm.py on lines 212..217
    pyipmi/msgs/hpm.py on lines 233..238
    pyipmi/msgs/hpm.py on lines 254..259
    pyipmi/msgs/picmg.py on lines 164..169
    pyipmi/msgs/vita.py on lines 42..47
    pyipmi/msgs/vita.py on lines 77..82
    pyipmi/msgs/vita.py on lines 128..133
    pyipmi/msgs/vita.py on lines 147..152

    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 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 29..34
    pyipmi/msgs/hpm.py on lines 86..91
    pyipmi/msgs/hpm.py on lines 170..175
    pyipmi/msgs/hpm.py on lines 212..217
    pyipmi/msgs/hpm.py on lines 233..238
    pyipmi/msgs/hpm.py on lines 254..259
    pyipmi/msgs/picmg.py on lines 107..112
    pyipmi/msgs/vita.py on lines 42..47
    pyipmi/msgs/vita.py on lines 77..82
    pyipmi/msgs/vita.py on lines 128..133
    pyipmi/msgs/vita.py on lines 147..152

    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