CiscoUcs/imcsdk

View on GitHub
imcsdk/imcfiltertype.py

Summary

Maintainability
F
6 days
Test Coverage

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

class NeFilter(AbstractFilter):
    """This is NeFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "NeFilter", "ne")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class LtFilter(AbstractFilter):
    """This is LtFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "LtFilter", "lt")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class LeFilter(AbstractFilter):
    """This is LeFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "LeFilter", "le")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class GtFilter(AbstractFilter):
    """This is GtFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "GtFilter", "gt")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class AnybitFilter(AbstractFilter):
    """This is AnybitFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "AnybitFilter", "anybit")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class EqFilter(AbstractFilter):
    """This is EqFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "EqFilter", "eq")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class WcardFilter(AbstractFilter):
    """This is WcardFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "WcardFilter", "wcard")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167

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

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

class AllbitsFilter(AbstractFilter):
    """This is AllbitsFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "AllbitsFilter", "allbits")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 95..107
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

class GeFilter(AbstractFilter):
    """This is GeFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "GeFilter", "ge")
        self.class_ = None
Severity: Major
Found in imcsdk/imcfiltertype.py and 8 other locations - About 5 hrs to fix
imcsdk/imcfiltertype.py on lines 23..35
imcsdk/imcfiltertype.py on lines 48..60
imcsdk/imcfiltertype.py on lines 80..92
imcsdk/imcfiltertype.py on lines 110..122
imcsdk/imcfiltertype.py on lines 125..137
imcsdk/imcfiltertype.py on lines 140..152
imcsdk/imcfiltertype.py on lines 155..167
imcsdk/imcfiltertype.py on lines 190..202

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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

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

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

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

Refactorings

Further Reading

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

class OrFilter(AbstractFilter):
    """This is OrFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "OrFilter", "or")

Severity: Major
Found in imcsdk/imcfiltertype.py and 2 other locations - About 40 mins to fix
imcsdk/imcfiltertype.py on lines 38..45
imcsdk/imcfiltertype.py on lines 170..177

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

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

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

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

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

Refactorings

Further Reading

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

class NotFilter(AbstractFilter):
    """This is NotFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "NotFilter", "not")

Severity: Major
Found in imcsdk/imcfiltertype.py and 2 other locations - About 40 mins to fix
imcsdk/imcfiltertype.py on lines 38..45
imcsdk/imcfiltertype.py on lines 180..187

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

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

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

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

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

Refactorings

Further Reading

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

class AndFilter(AbstractFilter):
    """This is AndFilter class."""
    def __init__(self):
        AbstractFilter.__init__(self, "AndFilter", "and")

Severity: Major
Found in imcsdk/imcfiltertype.py and 2 other locations - About 40 mins to fix
imcsdk/imcfiltertype.py on lines 170..177
imcsdk/imcfiltertype.py on lines 180..187

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

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