Showing 542 of 3,395 total issues
Function _addImageObj
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _addImageObj(self, name, img, row=None, column=0, colspan=0, rowspan=0, compound=None):
Function addIcon
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addIcon(self, name, iconName, row=None, column=0, colspan=0, rowspan=0, compound=None):
Function moveWidgetType
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def moveWidgetType(self, kind, name, row=None, column=0, colspan=0, rowspan=0, sticky=W+E):
Function scrollPane
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def scrollPane(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function addProperties
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addProperties(self, title, values=None, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addImage
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addImage(self, name, imageFile, row=None, column=0, colspan=0, rowspan=0, compound=None):
Function _listBoxMaker
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _listBoxMaker(self, name, values=None, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addLabelNumericEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelNumericEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function addNumericLabelEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addNumericLabelEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function saveBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def saveBox( self, title=None, fileName=None, dirName=None, fileExt=".txt",
Function _addMeter
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _addMeter(self, name, kind="METER", row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addLabel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabel(self, title, text=None, row=None, column=0, colspan=0, rowspan=0, selectable=False):
Function openBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def openBox(self, title=None, dirName=None, fileTypes=None, asFile=False, parent=None, multiple=False, mode='r'):
Function addLabelValidationEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelValidationEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function addLabelEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function table
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def table(self, title, value=None, *args, **kwargs):
""" simpleGUI - adds, sets & gets tables all in one go """
widgKind = WIDGET_NAMES.Table
kind = kwargs.pop("kind", 'normal')
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function scale
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def scale(self, title, *args, **kwargs):
""" simpleGUI - adds, sets & gets scales all in one go """
widgKind = WIDGET_NAMES.Scale
vert = kwargs.pop("direction", "horizontal").lower() == "vertical"
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _copyAndPasteHelper
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def _copyAndPasteHelper(self, menu):
if menu == "Cut":
self.copyAndPaste.cut()
elif menu == "Copy":
self.copyAndPaste.copy()
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function addStatusbar
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def addStatusbar(self, header="", fields=1, side=None):
if not self.hasStatus:
class Statusbar(Frame, object):
def __init__(self, master, **kwargs):
super(Statusbar, self).__init__(master, **kwargs)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _mouseScroll
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def _mouseScroll(self, horiz, event):
direction = 0
# get direction
if event.num == 4:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"