Showing 216 of 245 total issues
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, host, username, password,
Function train_core
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train_core(domain: Text,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function train
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train(domain: Text,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, name,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, status, reason, message, details=None, help_url=None):
Function create_app
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_app(agent=None,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, action_name, trigger_date_time, name=None,
Function test_cv_none_does_not_trigger_search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def test_cv_none_does_not_trigger_search(self,
Function test_missing_classes_filled_correctly
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def test_missing_classes_filled_correctly(
Function _new_next_cell_state
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _new_next_cell_state(self, prev_all_cell_states,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function _log_action_on_tracker
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _log_action_on_tracker(self, tracker, action_name, events, policy,
Function run_interactive_learning
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def run_interactive_learning(stories: Text = None,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, sender_id, slots,
Function load
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def load(cls,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, correct_action, predicted_action,
Function _add_message_edge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _add_message_edge(graph: 'networkx.MultiDiGraph',
Function deserialise_events
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def deserialise_events(serialized_events: List[Dict[Text, Any]]
) -> List['Event']:
"""Convert a list of dictionaries to a list of corresponding events.
Example format:
- 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 as_feature
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def as_feature(self):
r = [0.0] * self.feature_dimensionality()
try:
for i, v in enumerate(self.values):
- 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"