Showing 729 of 1,315 total issues
File Container.py
has 3274 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# Container.py ---
# --------------------------------
File Editor.py
has 1899 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# Editor.py ---
# --------------------------------
Function getDiagramFromXMLSES
has a Cognitive Complexity of 233 (exceeds 5 allowed). Consider refactoring. Open
def getDiagramFromXMLSES(xmlses_file="", canvas=None):
"""
"""
def GetParent(node):
- 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
File devsimpy.py
has 1692 lines of code (exceeds 250 allowed). Consider refactoring. Open
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# devsimpy.py --- DEVSimPy - The Python DEVS GUI modeling and simulation software
Function __setstate__
has a Cognitive Complexity of 194 (exceeds 5 allowed). Consider refactoring. Open
def __setstate__(self, state):
""" Restore state from the unpickled state values.
"""
python_path = state['python_path']
- 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
File basesimulator.py
has 1282 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: Latin-1 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# basesimulator.py --- 'Plain' DEVS Model Simulator
# --------------------------------
# Copyright (c) 2013
Function OnLeftUp
has a Cognitive Complexity of 157 (exceeds 5 allowed). Consider refactoring. Open
def OnLeftUp(self, event):
"""
"""
cursor = self.GetCursor()
- 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
File basesimulator.py
has 998 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: Latin-1 -*-
"""
Actual simulation kernel
"""
from .solver import Solver
File PlotGUI.py
has 978 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# PlotGUI.py --- Plotting class
# --------------------------------
Function keyPress
has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring. Open
def keyPress(self, event):
"""
"""
key = event.GetKeyCode()
- 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
File Menu.py
has 862 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# Menu.py ---
# --------------------------------
Function __setstate__
has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring. Open
def __setstate__(self, state):
""" Restore state from the unpickled state values.
"""
python_path = state['python_path']
- 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 SelectProp
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
def SelectProp(self, evt):
"""
"""
row, col, pos= evt.GetRow(), evt.GetCol(), evt.GetPosition()
- 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
File Utilities.py
has 783 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# Utilities.py ---
# --------------------------------
File DSV.py
has 769 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
"""
DSV.py - Cliff Wells, 2002
Import/export DSV (delimiter separated values, a generalization of CSV).
File PropertiesGridCtrl.py
has 767 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# PropertiesGridCtrl.py ---
# --------------------------------
File LibraryTree.py
has 760 lines of code (exceeds 250 allowed). Consider refactoring. Open
# -*- coding: utf-8 -*-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# LibraryTree.py ---
# --------------------------------
MainApplication
has 87 functions (exceeds 20 allowed). Consider refactoring. Open
class MainApplication(wx.Frame):
""" DEVSimPy main application.
"""
def __init__(self, parent, id, title):
Function makeDEVSInstance
has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring. Open
def makeDEVSInstance(diagram = None):
""" Return the DEVS instance of diagram. Iterations order is very important!
1. we make the codeblock devs instance
2. we make the devs port instance for all devsimpy port
3. we make Containerblock instance
- 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 massAtomicTransitions
has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring. Open
def massAtomicTransitions(self, trans, clock):
"""
AtomicDEVS function to perform all necessary transitions, does so on a collection of models for performance.
:param trans: iterable containing all models and their requested transition
- 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"