Showing 344 of 362 total issues
Function addClass
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
if ( isFunction( value ) ) {
Function position
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
position: function() {
if ( !this[ 0 ] ) {
return;
}
Function call
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call(self, inputs, training=False): # pragma: no cover
"""Compute the output of the layer."""
z_gauss_mean = self.z_gauss_mean(inputs)
z_gauss_var = self.z_gauss_var(inputs)
Function remove
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( owner, key ) {
var i,
cache = owner[ this.expando ];
if ( cache === undefined ) {
Function debounce
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function debounce(func, wait, immediate) {
var timeout, previous, args, result, context;
var later = function() {
var passed = now() - previous;
Function __init__
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(
self,
input_shape: tuple,
edge_feature_shape: tuple,
adjacency_matrix: np.ndarray = None,
Consider simplifying this complex logical expression. Open
Open
if ( support.matchesSelector && documentIsHTML &&
!nonnativeSelectorCache[ expr + " " ] &&
( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
Function embedding_per_video
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def embedding_per_video(
Function get_coords
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_coords(
Function supervised_annotation
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def supervised_annotation(
Function plot_gantt
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_gantt(
Function plot_cluster_detection_performance
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_cluster_detection_performance(
Function get_callbacks
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_callbacks(
Consider simplifying this complex logical expression. Open
Open
if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&
isFunction$1(bCtor) && bCtor instanceof bCtor)
&& ('constructor' in a && 'constructor' in b)) {
return false;
}
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function output_unsupervised_annotated_video
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def output_unsupervised_annotated_video(
Function get_recurrent_encoder
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_recurrent_encoder(
Function interpolate_outliers
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def interpolate_outliers(
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function sniff_object
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
def sniff_object(
speed_dframe: pd.DataFrame,
arena_type: str,
arena: np.array,
pos_dict: pd.DataFrame,
- 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"