Showing 542 of 3,395 total issues
Function addDualMeter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addDualMeter(self, name, row=None, column=0, colspan=0, rowspan=0):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, parent, text="appJar", fill="#FF0000", stripe="#000000", fg="#FFFFFF", font=44):
Function addHorizontalSeparator
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addHorizontalSeparator(self, row=None, column=0, colspan=0, rowspan=0, colour=None):
Function setTreeColours
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def setTreeColours(self, title, fg=None, bg=None, fgH=None, bgH=None):
Function addEmptyMessage
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addEmptyMessage(self, title, row=None, column=0, colspan=0, rowspan=0):
Function getBg
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def getBg(self):
if self._getContainerProperty('type') == WIDGET_NAMES.RootPage:
if not self.ttkFlag:
return self.bgLabel.cget("bg")
else:
- 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 addSplitMeter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addSplitMeter(self, name, row=None, column=0, colspan=0, rowspan=0):
Function addSecretEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addSecretEntry(self, title, row=None, column=0, colspan=0, rowspan=0):
Function addDirectoryEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addDirectoryEntry(self, title, row=None, column=0, colspan=0, rowspan=0):
Function map
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def map(self, title, value=None, *args, **kwargs):
""" simpleGUI - adds, sets & gets maps all in one go """
widgKind = WIDGET_NAMES.Map
zoom = kwargs.pop("zoom", None)
size = kwargs.pop("size", 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 _getImageData
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _getImageData(self, imageData, fmt="gif"):
if fmt=="png":
self._importPngimagetk()
if PngImageTk is False:
raise Exception("TKINTERPNG library not found, PNG files not supported: imageData")
- 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 addFileEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addFileEntry(self, title, row=None, column=0, colspan=0, rowspan=0):
Function addSaveEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addSaveEntry(self, title, row=None, column=0, colspan=0, rowspan=0):
Function setTextArea
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def setTextArea(self, title, text, end=True, callFunction=True, tag=None):
Function addOpenEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addOpenEntry(self, title, row=None, column=0, colspan=0, rowspan=0):
Function _buildFileEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _buildFileEntry(self, title, frame, kind='save', text=None, default=None):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, parent, app, defaultLocation="Marlborough, UK", proxyString=None, useTtk=False, font=None):
Function addEmptyLabel
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addEmptyLabel(self, title, row=None, column=0, colspan=0, rowspan=0):
Function addVerticalSeparator
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def addVerticalSeparator(self, row=None, column=0, colspan=0, rowspan=0, colour=None):
Function tab
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def tab(self, title, tabTitle=None, **kwargs):
beforeTab = kwargs.pop("beforeTab", None)
afterTab = kwargs.pop("afterTab", None)
if tabTitle is None:
try:
- 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"