hackedteam/test-av

View on GitHub

Showing 466 of 1,471 total issues

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

class locationType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, type_=None, valueOf_=None):
        self.type_ = _cast(None, type_)
Severity: Major
Found in lib/maec/maec11.py and 1 other location - About 1 wk to fix
lib/maec/maec11.py on lines 20351..20421

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

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

class Custom_AttributeType(GeneratedsSuper):
    """The custom_attribute_name attribute contains the name of the custom
    attribute."""
    subclass = None
    superclass = None
Severity: Major
Found in lib/maec/maec11.py and 4 other locations - About 1 wk to fix
lib/maec/maec11.py on lines 9916..9984
lib/maec/maec11.py on lines 10671..10739
lib/maec/maec11.py on lines 17969..18043
lib/maec/maec11.py on lines 18936..19004

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

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

class PathType(GeneratedsSuper):
    """This attribute refers to the type of path that this element refers
    to. Possible values: Fully_Qualified, Relative."""
    subclass = None
    superclass = None
Severity: Major
Found in lib/maec/maec11.py and 4 other locations - About 1 wk to fix
lib/maec/maec11.py on lines 9916..9984
lib/maec/maec11.py on lines 15914..15982
lib/maec/maec11.py on lines 17969..18043
lib/maec/maec11.py on lines 18936..19004

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

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

class TitleType(GeneratedsSuper):
    """This field holds a shortform descriptor for the language that the
    Title field is expressed in. Attempting to install the relevant
    ISO 2- and 3-letter codes as the enumerated possible values is
    probably never going to be a realistic possibility. See RFC 3066
Severity: Major
Found in lib/maec/maec11.py and 4 other locations - About 1 wk to fix
lib/maec/maec11.py on lines 9916..9984
lib/maec/maec11.py on lines 10671..10739
lib/maec/maec11.py on lines 15914..15982
lib/maec/maec11.py on lines 18936..19004

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

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

class AnalystsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Analyst=None):
        if Analyst is None:
Severity: Major
Found in lib/maec/maec11.py and 1 other location - About 6 days to fix
lib/maec/maec11.py on lines 18861..18932

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

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

class NotesType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Note=None):
        if Note is None:
Severity: Major
Found in lib/maec/maec11.py and 1 other location - About 6 days to fix
lib/maec/maec11.py on lines 18378..18449

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

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

class Affected_ObjectsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Affected_Object=None):
        if Affected_Object is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class HashesType5(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Hash=None):
        if Hash is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Action_PoolType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Action=None):
        if Action is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class ImportsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Import=None):
        if Import is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class ImagesType1(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Image=None):
        if Image is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Related_BehaviorsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Related_Behavior=None):
        if Related_Behavior is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Related_ObjectsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Related_Object=None):
        if Related_Object is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Tools_UsedType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Tool=None):
        if Tool is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Associated_CodeType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Associated_Code_Snippet=None):
        if Associated_Code_Snippet is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Data_HashesType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Hash=None):
        if Hash is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class Effect_PoolType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Effect=None):
        if Effect is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class ClassificationsType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Classification=None):
        if Classification is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class HashesType(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Hash=None):
        if Hash is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 12058..12131
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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

class HashesType1(GeneratedsSuper):
    subclass = None
    superclass = None
    def __init__(self, Hash=None):
        if Hash is None:
Severity: Major
Found in lib/maec/maec11.py and 48 other locations - About 6 days to fix
lib/maec/maec11.py on lines 7643..7716
lib/maec/maec11.py on lines 7720..7793
lib/maec/maec11.py on lines 7797..7870
lib/maec/maec11.py on lines 8036..8109
lib/maec/maec11.py on lines 8113..8186
lib/maec/maec11.py on lines 8190..8263
lib/maec/maec11.py on lines 8267..8340
lib/maec/maec11.py on lines 8344..8417
lib/maec/maec11.py on lines 8421..8494
lib/maec/maec11.py on lines 8498..8571
lib/maec/maec11.py on lines 8575..8648
lib/maec/maec11.py on lines 9154..9227
lib/maec/maec11.py on lines 9759..9832
lib/maec/maec11.py on lines 9989..10062
lib/maec/maec11.py on lines 10066..10139
lib/maec/maec11.py on lines 10280..10353
lib/maec/maec11.py on lines 10744..10817
lib/maec/maec11.py on lines 12267..12340
lib/maec/maec11.py on lines 12526..12599
lib/maec/maec11.py on lines 13149..13222
lib/maec/maec11.py on lines 13532..13605
lib/maec/maec11.py on lines 13609..13682
lib/maec/maec11.py on lines 13686..13759
lib/maec/maec11.py on lines 13763..13836
lib/maec/maec11.py on lines 13840..13913
lib/maec/maec11.py on lines 13917..13990
lib/maec/maec11.py on lines 13994..14067
lib/maec/maec11.py on lines 15112..15185
lib/maec/maec11.py on lines 15189..15262
lib/maec/maec11.py on lines 15837..15910
lib/maec/maec11.py on lines 15987..16060
lib/maec/maec11.py on lines 16141..16214
lib/maec/maec11.py on lines 16299..16372
lib/maec/maec11.py on lines 16454..16527
lib/maec/maec11.py on lines 16609..16682
lib/maec/maec11.py on lines 17746..17819
lib/maec/maec11.py on lines 18629..18702
lib/maec/maec11.py on lines 18784..18857
lib/maec/maec11.py on lines 19009..19082
lib/maec/maec11.py on lines 19086..19159
lib/maec/maec11.py on lines 19163..19236
lib/maec/maec11.py on lines 19355..19428
lib/maec/maec11.py on lines 19432..19505
lib/maec/maec11.py on lines 19509..19582
lib/maec/maec11.py on lines 20274..20347
lib/maec/maec11.py on lines 20501..20574
lib/maec/maec11.py on lines 20578..20651
lib/maec/maec11.py on lines 20655..20728

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

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