kontron/python-ipmi

View on GitHub
pyipmi/msgs/hpm.py

Summary

Maintainability
F
3 days
Test Coverage

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

        Bitfield('capabilities', 1,
                 Bitfield.Bit('firmware_upgrade_undesirable', 1),
                 Bitfield.Bit('automatic_rollback_overriden', 1),
                 Bitfield.Bit('ipmc_degraded_during_upgrade', 1),
                 Bitfield.Bit('deferred_activation', 1),
Severity: Major
Found in pyipmi/msgs/hpm.py and 1 other location - About 3 hrs to fix
pyipmi/msgs/bmc.py on lines 55..63

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

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 QueryRollbackStatusRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_QUERY_ROLLBACK_STATUS
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 1 other location - About 2 hrs to fix
pyipmi/msgs/vita.py on lines 528..537

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class QuerySelftestResultsRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_QUERY_SELFTEST_RESULTS
    __netfn__ = constants.NETFN_GROUP_EXTENSION | 1
    __fields__ = (
Severity: Major
Found in pyipmi/msgs/hpm.py and 1 other location - About 2 hrs to fix
pyipmi/msgs/vita.py on lines 195..203

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

Similar blocks of code found in 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 63..70
pyipmi/msgs/hpm.py on lines 104..111
pyipmi/msgs/picmg.py on lines 182..189
pyipmi/msgs/picmg.py on lines 282..289
pyipmi/msgs/picmg.py on lines 351..358
pyipmi/msgs/picmg.py on lines 383..390
pyipmi/msgs/picmg.py on lines 507..515
pyipmi/msgs/picmg.py on lines 718..725
pyipmi/msgs/vita.py on lines 164..171
pyipmi/msgs/vita.py on lines 207..214
pyipmi/msgs/vita.py on lines 271..278
pyipmi/msgs/vita.py on lines 400..407
pyipmi/msgs/vita.py on lines 542..549

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class 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 104..111
pyipmi/msgs/hpm.py on lines 148..155
pyipmi/msgs/picmg.py on lines 182..189
pyipmi/msgs/picmg.py on lines 282..289
pyipmi/msgs/picmg.py on lines 351..358
pyipmi/msgs/picmg.py on lines 383..390
pyipmi/msgs/picmg.py on lines 507..515
pyipmi/msgs/picmg.py on lines 718..725
pyipmi/msgs/vita.py on lines 164..171
pyipmi/msgs/vita.py on lines 207..214
pyipmi/msgs/vita.py on lines 271..278
pyipmi/msgs/vita.py on lines 400..407
pyipmi/msgs/vita.py on lines 542..549

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class 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 63..70
pyipmi/msgs/hpm.py on lines 148..155
pyipmi/msgs/picmg.py on lines 182..189
pyipmi/msgs/picmg.py on lines 282..289
pyipmi/msgs/picmg.py on lines 351..358
pyipmi/msgs/picmg.py on lines 383..390
pyipmi/msgs/picmg.py on lines 507..515
pyipmi/msgs/picmg.py on lines 718..725
pyipmi/msgs/vita.py on lines 164..171
pyipmi/msgs/vita.py on lines 207..214
pyipmi/msgs/vita.py on lines 271..278
pyipmi/msgs/vita.py on lines 400..407
pyipmi/msgs/vita.py on lines 542..549

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

Similar blocks of code found in 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 191..197

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 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 272..278

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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 FinishFirmwareUploadRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_FINISH_FIRMWARE_UPLOAD
    __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 94..100
pyipmi/msgs/hpm.py on lines 115..121
pyipmi/msgs/hpm.py on lines 201..207
pyipmi/msgs/hpm.py on lines 262..268
pyipmi/msgs/picmg.py on lines 248..254
pyipmi/msgs/picmg.py on lines 293..299
pyipmi/msgs/picmg.py on lines 449..455
pyipmi/msgs/picmg.py on lines 497..503
pyipmi/msgs/picmg.py on lines 574..580
pyipmi/msgs/picmg.py on lines 622..628
pyipmi/msgs/picmg.py on lines 708..714
pyipmi/msgs/picmg.py on lines 761..767
pyipmi/msgs/vita.py on lines 84..90
pyipmi/msgs/vita.py on lines 135..141
pyipmi/msgs/vita.py on lines 154..160
pyipmi/msgs/vita.py on lines 175..181
pyipmi/msgs/vita.py on lines 261..267
pyipmi/msgs/vita.py on lines 332..338
pyipmi/msgs/vita.py on lines 364..370
pyipmi/msgs/vita.py on lines 411..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 41.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class 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 94..100
pyipmi/msgs/hpm.py on lines 159..165
pyipmi/msgs/hpm.py on lines 201..207
pyipmi/msgs/hpm.py on lines 262..268
pyipmi/msgs/picmg.py on lines 248..254
pyipmi/msgs/picmg.py on lines 293..299
pyipmi/msgs/picmg.py on lines 449..455
pyipmi/msgs/picmg.py on lines 497..503
pyipmi/msgs/picmg.py on lines 574..580
pyipmi/msgs/picmg.py on lines 622..628
pyipmi/msgs/picmg.py on lines 708..714
pyipmi/msgs/picmg.py on lines 761..767
pyipmi/msgs/vita.py on lines 84..90
pyipmi/msgs/vita.py on lines 135..141
pyipmi/msgs/vita.py on lines 154..160
pyipmi/msgs/vita.py on lines 175..181
pyipmi/msgs/vita.py on lines 261..267
pyipmi/msgs/vita.py on lines 332..338
pyipmi/msgs/vita.py on lines 364..370
pyipmi/msgs/vita.py on lines 411..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 41.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class AbortFirmwareUpgradeRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_ABORT_FIRMWARE_UPGRADE
    __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 115..121
pyipmi/msgs/hpm.py on lines 159..165
pyipmi/msgs/hpm.py on lines 201..207
pyipmi/msgs/hpm.py on lines 262..268
pyipmi/msgs/picmg.py on lines 248..254
pyipmi/msgs/picmg.py on lines 293..299
pyipmi/msgs/picmg.py on lines 449..455
pyipmi/msgs/picmg.py on lines 497..503
pyipmi/msgs/picmg.py on lines 574..580
pyipmi/msgs/picmg.py on lines 622..628
pyipmi/msgs/picmg.py on lines 708..714
pyipmi/msgs/picmg.py on lines 761..767
pyipmi/msgs/vita.py on lines 84..90
pyipmi/msgs/vita.py on lines 135..141
pyipmi/msgs/vita.py on lines 154..160
pyipmi/msgs/vita.py on lines 175..181
pyipmi/msgs/vita.py on lines 261..267
pyipmi/msgs/vita.py on lines 332..338
pyipmi/msgs/vita.py on lines 364..370
pyipmi/msgs/vita.py on lines 411..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 41.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class ActivateFirmwareRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_ACTIVATE_FIRMWARE
    __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 94..100
pyipmi/msgs/hpm.py on lines 115..121
pyipmi/msgs/hpm.py on lines 159..165
pyipmi/msgs/hpm.py on lines 262..268
pyipmi/msgs/picmg.py on lines 248..254
pyipmi/msgs/picmg.py on lines 293..299
pyipmi/msgs/picmg.py on lines 449..455
pyipmi/msgs/picmg.py on lines 497..503
pyipmi/msgs/picmg.py on lines 574..580
pyipmi/msgs/picmg.py on lines 622..628
pyipmi/msgs/picmg.py on lines 708..714
pyipmi/msgs/picmg.py on lines 761..767
pyipmi/msgs/vita.py on lines 84..90
pyipmi/msgs/vita.py on lines 135..141
pyipmi/msgs/vita.py on lines 154..160
pyipmi/msgs/vita.py on lines 175..181
pyipmi/msgs/vita.py on lines 261..267
pyipmi/msgs/vita.py on lines 332..338
pyipmi/msgs/vita.py on lines 364..370
pyipmi/msgs/vita.py on lines 411..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 41.

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

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

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

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

Refactorings

Further Reading

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

@register_message_class
class InitiateManualRollbackRsp(PicmgMessage):
    __cmdid__ = constants.CMDID_HPM_INITIATE_MANUAL_ROLLBACK
    __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 94..100
pyipmi/msgs/hpm.py on lines 115..121
pyipmi/msgs/hpm.py on lines 159..165
pyipmi/msgs/hpm.py on lines 201..207
pyipmi/msgs/picmg.py on lines 248..254
pyipmi/msgs/picmg.py on lines 293..299
pyipmi/msgs/picmg.py on lines 449..455
pyipmi/msgs/picmg.py on lines 497..503
pyipmi/msgs/picmg.py on lines 574..580
pyipmi/msgs/picmg.py on lines 622..628
pyipmi/msgs/picmg.py on lines 708..714
pyipmi/msgs/picmg.py on lines 761..767
pyipmi/msgs/vita.py on lines 84..90
pyipmi/msgs/vita.py on lines 135..141
pyipmi/msgs/vita.py on lines 154..160
pyipmi/msgs/vita.py on lines 175..181
pyipmi/msgs/vita.py on lines 261..267
pyipmi/msgs/vita.py on lines 332..338
pyipmi/msgs/vita.py on lines 364..370
pyipmi/msgs/vita.py on lines 411..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 41.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 32.

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status