Showing 1,842 of 2,440 total issues
Avoid too many return
statements within this function. Open
return 1
Avoid too many return
statements within this function. Open
return value
Avoid too many return
statements within this function. Open
return True
Avoid too many return
statements within this function. Open
return None
Avoid too many return
statements within this function. Open
return thepage
Avoid too many return
statements within this function. Open
return
Avoid too many return
statements within this function. Open
return any(this == version for version in versions)
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return True
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return any(this != version for version in versions)
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return True
Function __call__
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def __call__(self):
key = eval("self.plugin.dh.document[self.value[0]]")
FindWindow = FindWindowFunction(key,u'Button',1)
hwnds = FindWindow()
if self.value[1] != "": #for toggle actions
- 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 RemoveDirs
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def RemoveDirs(self, localDir, remoteDir, remotePath):
for dirName in remoteDir.dirs:
if dirName not in localDir.dirs:
localSubDir = Directory()
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 DoTask
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def DoTask(self):
buildSetup = self.buildSetup
menuTabs = (HomePage, DocsPage, WikiPage, ForumPage, DownloadPage)
env = Environment(
loader=FileSystemLoader(
- 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 OnEnter
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def OnEnter(self):
self.timer.cancel()
if self.mode < 3:
if self.oldKeys != '':
if self.mode!=2:
- 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 6 (exceeds 5 allowed). Consider refactoring. Open
def Configure(
self,
num_bytes=None,
timeout=1,
returnformat="Hex",
- 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 __call__
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def __call__(self):
if self.plugin.menuDlg is not None:
max=len(self.plugin.favList)
if max > 0:
sel=self.plugin.menuDlg.GetSizer().GetChildren()[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"