Showing 542 of 3,395 total issues
Function updateMap
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def updateMap(self):
if not self.alive: return
if not self.imageQueue.empty():
self.rawData = self.imageQueue.get()
self.mapData = base64.encodestring(self.rawData)
- 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 getName
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def getName(self, widget):
if widget is not None and hasattr(widget, 'APPJAR_TYPE'):
widgetType = widget.APPJAR_TYPE
widgGroup = self.group(widgetType, None)
if widgGroup is not None:
- 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 data
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def data(self, bg=None, fromBox=None, grey=None):
"""Returns image data in the form of a string"""
args = (self.name, "data")
if bg:
if bg[0] == "-background":
- 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 testScrollPaneScrolling
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def testScrollPaneScrolling(sp):
event = Event()
sp._mouseEnter(event)
sp._mouseLeave(event)
- 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 addDbOptionBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addDbOptionBox(self, title, db, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function panedFrame
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def panedFrame(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function tabbedFrame
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def tabbedFrame(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
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 panedFrameVertical
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def panedFrameVertical(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 addLabelSpinBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelSpinBox(self, title, values, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addButtons
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addButtons(self, names, funcs, row=None, column=0, colspan=0, rowspan=0, fill=False):
Function frame
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def frame(self, title=None, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function addNamedButton
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addNamedButton(self, name, title, func, row=None, column=0, colspan=0, rowspan=0):
Function frameStack
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def frameStack(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function startScrollPane
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def startScrollPane(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", disabled=""):
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 _positionWidget
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _positionWidget( self, widget, row, column=0, colspan=0, rowspan=0, sticky=W+E, updateBg=True):
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 subWindow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def subWindow(self, name, title=None, modal=False, blocking=False, transient=False, grouped=True, **kwargs):