Showing 344 of 362 total issues
Function Tween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Tween( elem, options, prop, end, easing ) {
Function CHILD
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, _argument, first, last ) {
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function condense( unmatched, map, filter, context, xml ) {
Function buildFragment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildFragment( elems, context, scripts, selection, ignored ) {
Function superMatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
superMatcher = function( seed, context, xml, results, outermost ) {
Function plot_arena
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_arena(
Function call
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def call(
Function create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create(
Function get_distances
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_distances(
Function get_angles
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_angles(
Function fc_loss
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fc_loss(
Function explain_clusters
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def explain_clusters(
Function rolling_window
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def rolling_window(
Function call
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def call(
Function train_supervised_cluster_detectors
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train_supervised_cluster_detectors(
Function load_table
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def load_table(
Function click_on_corners
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def click_on_corners(event, x, y, flags, param):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function filter_short_bouts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def filter_short_bouts(
Function _displayItem
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
const _displayItem = (item, searchTerms) => {
const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT;
const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
- 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"