SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function handleMappedButton has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function handleMappedButton(cm, button, pos, repeat, event) {

Function conflictingCollapsedRange has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function conflictingCollapsedRange(doc, lineNo, from, to, marker) {

Function markTextShared has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function markTextShared(doc, from, to, options, type) {

Function findPosH has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function findPosH(doc, pos, dir, unit, visually) {

Function measureCharPrepared has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function measureCharPrepared(cm, prepared, ch, bias, varHeight) {

Function endOfLine has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function endOfLine(visually, cm, lineObj, lineNo, dir) {

Function domTextBetween has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function domTextBetween(cm, from, to, fromLine, toLine) {

Function coordsCharInner has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function coordsCharInner(cm, lineObj, lineNo, x, y) {

Function replaceRange has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function replaceRange(doc, code, from, to, origin) {

Function countColumn has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function countColumn(string, end, tabSize, startIndex, startValue) {

Function skipAtomicInner has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {

Function mapIntoWithKeyPrefixInternal has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {

Function checkPropTypes has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function checkPropTypes(typeSpecs, values, location, componentName, getStack) {

Function internalOn has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  var internalOn = function(obj, name, callback, context, listening) {

Function baseMerge has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function baseMerge(object, source, customizer, stackA, stackB) {

Function baseReduce has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {

Function eventsApi has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  var eventsApi = function(iteratee, events, name, callback, opts) {

Function executeBound has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {

Function resolve has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function resolve(mainSchema, key,modeTypeKey, currentSchemaElement, resolvedValue){

Method loadSettings has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public void loadSettings( final Config config ) throws InvalidSettingsException {        
        int i;
        Config c;
        
        if (config.containsKey(PARAM_MATRIX) && config.getInt(PARAM_MATRIX) > 0) matrix = new Matrix(config.getInt(PARAM_MATRIX));

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

Severity
Category
Status
Source
Language