Showing 1,804 of 2,440 total issues
Function Configure
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
def Configure(self,
mappings = None,
):
#gui callbacks and helper methods
def ValidChars(input):
- 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 Configure
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
def Configure(
self,
displayNum=None,
size=None,
frequency=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 Draw
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
def Draw(
self,
dc,
firstColour=(0,0,0),
lastColour=(255,255,255),
- 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 GetComPorts
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
def GetComPorts(availableOnly=True):
"""
Scans the registry for serial ports and return a list of (port, desc, hwid)
tuples.
If availableOnly is true only return currently existing ports.
- 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
Sun
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
class Sun:
def __init__(self):
""""""
File __init__.py
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
#
# This file is a plugin for EventGhost.
# Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
#
File __init__.py
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
#
# plugins/Foobar2000/__init__.py
#
# Copyright (C) 2006 MonsterMagnet
File __init__.py
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
#
# plugins/Ping/__init__.py
#
# This file is a plugin for EventGhost.
File __init__.py
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
#
# This file is a plugin for EventGhost.
# Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
# André Weber <WeberAndre@gmx.de>
Function __call__
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def __call__(self, arrayInfo, sep = '', res = True):
shuffle = self.plugin.GetValue('isShuffle')
if not shuffle or self.value == 0:
try:
SongData, ix = self.plugin.GetSongData(self.value)
- 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 ShowSuffixesFrame
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def ShowSuffixesFrame(self):
text = self.plugin.text
self.SetTitle(text.suffTitle)
sizer = wx.BoxSizer(wx.VERTICAL)
mainSizer = wx.GridBagSizer(1,8)
- 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 UpdateEGscheduler
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def UpdateEGscheduler(self):
data = self.data
tmpList = []
sched_list = eg.scheduler.__dict__['heap']
for sched in sched_list:
- 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 ShowObservViewerDialog
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def ShowObservViewerDialog(self):
text = self.plugin.text
self.SetTitle(text.viewerTitle)
mainSizer = wx.BoxSizer(wx.VERTICAL)
mainSizer.Add(
- 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 CreateRemote
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def CreateRemote(plugin, xPos, yPos, alwaysOnTop):
data = plugin.data
borderSize = plugin.borderSize
if plugin.frame:
- 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 __init__
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def __init__(
self,
parent,
id=-1,
value=0.0,
- 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 ReceiveThreadProc
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def ReceiveThreadProc(self):
hFile = self.hFile
osReader = self.osReader
lpBuf = create_string_buffer(1)
dwRead = DWORD()
- 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 GetDevicePath
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def GetDevicePath(
devicePath,
vendorId,
productId,
versionNumber, # pass None to ignore
- 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 _reconfigurePort
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def _reconfigurePort(self):
"""
Set commuication parameters on opened port.
"""
if not self.hComPort:
- 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 ShowOutTxtsDlg
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
def ShowOutTxtsDlg(self):
text = self.plugin.text
self.SetTitle(text.textsTitle)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.SetMinSize((450, 300))
Function __init__
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
def __init__(
self,
parent,
pos=wx.DefaultPosition,
size=wx.DefaultSize,