Showing 542 of 3,395 total issues
Function _setPinBut
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def _setPinBut(self):
# only call this once
if self.tb.pinBut is not None:
return
- 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 selectListItem
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def selectListItem(self, title, item, callFunction=True):
lb = self.widgetManager.get(WIDGET_NAMES.ListBox, title)
positions = self._getListPositions(title, item)
if len(positions) > 1 and lb.cget("selectmode") == EXTENDED:
allOk = True
- 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 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 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 _radioButtonMaker
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _radioButtonMaker(self, title, name, row=None, column=0, colspan=0, rowspan=0, **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 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 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):
Function _scaleMaker
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _scaleMaker(self, title, label, row=None, column=0, colspan=0, rowspan=0, **kwargs):
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 _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 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 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 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 notebook
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def notebook(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function addSpinBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addSpinBox(self, title, values, row=None, column=0, colspan=0, rowspan=0, **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 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 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):