jarvisteach/appJar

View on GitHub

Showing 519 of 3,395 total issues

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

        if parent is None:
            parent = self.topLevel
        else:
            parent = self.widgetManager.get(WIDGET_NAMES.SubWindow, parent)
Severity: Minor
Found in appJar/appjar.py and 1 other location - About 40 mins to fix
appJar/appjar.py on lines 11718..11721

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

    def _importSqlite3(self):
        """ loads sqlite3 """
        global sqlite3
        if sqlite3 is None:
            try:
Severity: Major
Found in appJar/appjar.py and 2 other locations - About 40 mins to fix
appJar/appjar.py on lines 954..961
appJar/appjar.py on lines 1113..1120

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

        self.buttons[1].bind("<ButtonRelease-1>",lambda e: self.zoom("+"), add="+")
Severity: Major
Found in appJar/appjar.py and 2 other locations - About 40 mins to fix
appJar/appjar.py on lines 15271..15271
appJar/appjar.py on lines 15279..15279

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

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

    for num in [4, 5]:
        event.num = num
        sp._horizMouseScroll(event)
        sp._vertMouseScroll(event)
Severity: Minor
Found in tests/widget_test.py and 1 other location - About 40 mins to fix
tests/widget_test.py on lines 2874..2877

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

        try:
            note = self.startNotebook(title, row, column, colspan, rowspan, sticky)
        except ItemLookupError:
            note = self.openNotebook(title)
Severity: Major
Found in appJar/appjar.py and 2 other locations - About 40 mins to fix
appJar/appjar.py on lines 4828..4831
appJar/appjar.py on lines 5667..5670

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

            elif mode == "replace":
                if value is not None: self.changeSpinBox(title, vals=value)
                else: gui.error("No values specified to replace in spinbox: %s", title)
Severity: Minor
Found in appJar/appjar.py and 1 other location - About 40 mins to fix
appJar/appjar.py on lines 6220..6222

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

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

        if (name not in self.widgetManager.group(WIDGET_NAMES.Toolbar)):
            raise Exception("Unknown toolbar name: " + name)
Severity: Major
Found in appJar/appjar.py and 3 other locations - About 35 mins to fix
appJar/appjar.py on lines 10649..10650
appJar/appjar.py on lines 10678..10679
appJar/appjar.py on lines 10697..10698

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

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

    def hideTabbedFrameTab(self, title, tab):
        nb = self.widgetManager.get(WIDGET_NAMES.TabbedFrame, title)
        nb.hideTab(tab)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

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

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

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

Refactorings

Further Reading

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

        if (name not in self.widgetManager.group(WIDGET_NAMES.Toolbar)):
            raise Exception("Unknown toolbar name: " + name)
Severity: Major
Found in appJar/appjar.py and 3 other locations - About 35 mins to fix
appJar/appjar.py on lines 10649..10650
appJar/appjar.py on lines 10671..10672
appJar/appjar.py on lines 10697..10698

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

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

    def showTabbedFrameTab(self, title, tab):
        nb = self.widgetManager.get(WIDGET_NAMES.TabbedFrame, title)
        nb.showTab(tab)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

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

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

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

Refactorings

Further Reading

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

        if (name not in self.widgetManager.group(WIDGET_NAMES.Toolbar)):
            raise Exception("Unknown toolbar name: " + name)
Severity: Major
Found in appJar/appjar.py and 3 other locations - About 35 mins to fix
appJar/appjar.py on lines 10671..10672
appJar/appjar.py on lines 10678..10679
appJar/appjar.py on lines 10697..10698

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

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

    def setTreeHighlightFg(self, title, colour):
        tree = self.widgetManager.get(WIDGET_NAMES.Tree, title)
        tree.setFgHColour(colour)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593

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

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

    def setPagedWindowTitle(self, title, pageTitle):
        pager = self.widgetManager.get(WIDGET_NAMES.PagedWindow, title)
        pager.setTitle(pageTitle)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

    def searchGoogleMap(self, title, location):
        gMap = self.widgetManager.get(WIDGET_NAMES.Map, title)
        gMap.changeLocation(location)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

    def setGoogleMapSize(self, title, size):
        gMap = self.widgetManager.get(WIDGET_NAMES.Map, title)
        gMap.setSize(size)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

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

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

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

Refactorings

Further Reading

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

        if (name not in self.widgetManager.group(WIDGET_NAMES.Toolbar)):
            raise Exception("Unknown toolbar name: " + name)
Severity: Major
Found in appJar/appjar.py and 3 other locations - About 35 mins to fix
appJar/appjar.py on lines 10649..10650
appJar/appjar.py on lines 10671..10672
appJar/appjar.py on lines 10678..10679

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

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

    def deleteTableRow(self, title, rowNum):
        grid = self.widgetManager.get(WIDGET_NAMES.Table, title)
        grid.deleteRow(rowNum)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

    def setTreeHighlightBg(self, title, colour):
        tree = self.widgetManager.get(WIDGET_NAMES.Tree, title)
        tree.setBgHColour(colour)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9595..9597

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

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

    def setTreeBg(self, title, colour):
        tree = self.widgetManager.get(WIDGET_NAMES.Tree, title)
        tree.setBgColour(colour)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6732..6734
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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

    def setGoogleMapProxy(self, title, proxyString):
        gMap = self.widgetManager.get(WIDGET_NAMES.Map, title)
        gMap.setProxyString(proxyString)
Severity: Major
Found in appJar/appjar.py and 11 other locations - About 35 mins to fix
appJar/appjar.py on lines 4877..4879
appJar/appjar.py on lines 4881..4883
appJar/appjar.py on lines 5155..5157
appJar/appjar.py on lines 5438..5440
appJar/appjar.py on lines 5471..5473
appJar/appjar.py on lines 6739..6741
appJar/appjar.py on lines 6759..6761
appJar/appjar.py on lines 9583..9585
appJar/appjar.py on lines 9587..9589
appJar/appjar.py on lines 9591..9593
appJar/appjar.py on lines 9595..9597

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

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