SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

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

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

    addWidget: function(pos, node, scroll, vert, horiz) {

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

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

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

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

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

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

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

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

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

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

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

function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {

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

function charCoords(cm, pos, context, lineObj, bias) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    private IProject createProject(final IPath workflowPath) throws CoreException {
        IProgressMonitor monitor = new NullProgressMonitor();
        
         IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
            IResource resource = root.findMember(workflowPath);

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