kontron/python-ipmi

View on GitHub

Showing 253 of 341 total issues

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

@register_message_class
class InitiateUpgradeActionReq(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_INITIATE_UPGRADE_ACTION
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 13 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 64..71
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/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 VitaSetFruActivationReq(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_SET_FRU_ACTIVATION
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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 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 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 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 VitaGetFruLedCapabilitiesReq(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_GET_LED_COLOR_CAPABILITIES
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/picmg.py on lines 720..727
pyipmi/msgs/vita.py on lines 166..173
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 GetComponentPropertiesReq(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_GET_COMPONENT_PROPERTIES
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 13 other locations - About 1 hr to fix
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/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 FinishFirmwareUploadReq(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_FINISH_FIRMWARE_UPLOAD
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.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/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/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 VitaGetFruLedStateReq(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_GET_FRU_LED_STATE
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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 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 VitaSetPayloadModeReq(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_SET_PAYLOAD_MODE
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 13 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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

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

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

if device_id.aux is not None:
    print('Aux Firmware Rev Info:  [%s]' % (
            ' '.join('0x%02x' % d for d in device_id.aux)))
Severity: Major
Found in examples/interface_aardvark.py and 1 other location - About 1 hr to fix
examples/interface_rmcp.py on lines 48..50

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 43.

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

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

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

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

Refactorings

Further Reading

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

if device_id.aux is not None:
    print('Aux Firmware Rev Info:  [%s]' % (
            ' '.join('0x%02x' % d for d in device_id.aux)))
Severity: Major
Found in examples/interface_rmcp.py and 1 other location - About 1 hr to fix
examples/interface_aardvark.py on lines 41..43

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 43.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class ActivateFirmwareReq(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_ACTIVATE_FIRMWARE
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 1 other location - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 273..279

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

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 GetLanAttachCapabilitiesReq(PicmgMessage):
    __cmdid__ = constants.CMDID_GET_LAN_ATTACH_CAPABILITIES
    __netfn__ = constants.NETFN_GROUP_EXTENSION
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 1 other location - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 192..198

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

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

@register_message_class
class InitiateUpgradeActionRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_INITIATE_UPGRADE_ACTION
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 20 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 95..101
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/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 VitaSetChassisIdentifierRsp(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_SET_CHASSIS_IDENTIFIER
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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 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 VitaFruControlRsp(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_FRU_CONTROL
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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 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 VitaSetFruLedStateRsp(VitaMessage):
    __cmdid__ = constants.CMDID_VITA_SET_FRU_LED_STATE
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/vita.py and 20 other locations - About 1 hr to fix
pyipmi/msgs/hpm.py on lines 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/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 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

Severity
Category
Status
Source
Language