LearnPAd/learnpad

View on GitHub

Showing 2,438 of 4,261 total issues

File SesameManager.java has 640 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 *  SesameManager.java
 *
 *  Copyright (c) 1995-2012, The University of Sheffield. See the file
 *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt

    Function taskReceiver has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring.
    Open

    function taskReceiver(address, user, integratedMode, sessionid, platformAddress) {
        if (typeof integratedMode == 'undefined') {
            integratedMode = false;
        }
    
    

    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 Updater has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
    Open

    function() {
        var BEFOREUPDATE = "beforeupdate",
            UPDATE = "update",
            FAILURE = "failure";
    
    

    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 Ajax has 276 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Ext.lib.Ajax = function() {
        var activeX = ['Msxml2.XMLHTTP.6.0',
                       'Msxml2.XMLHTTP.3.0',
                       'Msxml2.XMLHTTP'],
            CONTENTTYPE = 'Content-Type';

      DocumentRootImpl has 73 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class DocumentRootImpl extends MinimalEObjectImpl.Container implements DocumentRoot {
          /**
           * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
           * <!-- begin-user-doc -->
           * <!-- end-user-doc -->

        File OntologyViewer.java has 616 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         *  OntologyViewer.java
         *
         *  Niraj Aswani, 12/March/07
         *

          Method findGL has a Cognitive Complexity of 68 (exceeds 5 allowed). Consider refactoring.
          Open

              @Override
              protected void findGL(Definitions diagram) {
                  StringBuilder temp = new StringBuilder();
          
                  int num = 0;

          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

          File direct-debug.js has 611 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * Ext JS Library 3.4.0
           * Copyright(c) 2006-2011 Sencha Inc.
           * licensing@sencha.com
           * http://www.sencha.com/license

            File pkg-buttons-debug.js has 607 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * Ext JS Library 3.4.0
             * Copyright(c) 2006-2011 Sencha Inc.
             * licensing@sencha.com
             * http://www.sencha.com/license

              Function JSON has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
              Open

              Ext.util.JSON = new (function(){
                  var useHasOwn = !!{}.hasOwnProperty,
                      isNative = function() {
                          var useNative = null;
              
              

              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 7 has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
              Open

              },{"+NscNm":1,"./Errors":2}],7:[function(require,module,exports){
              "use strict";
              
              var SchemaCompilation   = require("./SchemaCompilation");
              var SchemaValidation    = require("./SchemaValidation");

              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

              Method actionPerformed has 259 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public void actionPerformed(ActionEvent ae) {
              
                    if(ae.getSource() == otherAS) {
                      annotationSetsNamesCB.setEnabled(true);
                      if(annotationSetsNamesCB.getSelectedItem() == null

                Store has 70 functions (exceeds 20 allowed). Consider refactoring.
                Open

                Ext.data.Store = Ext.extend(Ext.util.Observable, {
                    /**
                     * @cfg {String} storeId If passed, the id to use to register with the <b>{@link Ext.StoreMgr StoreMgr}</b>.
                     * <p><b>Note</b>: if a (deprecated) <tt>{@link #id}</tt> is specified it will supersede the <tt>storeId</tt>
                     * assignment.</p>

                  Method findGL has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
                  Open

                      @Override
                      protected void findGL(Definitions diagram) {
                          StringBuilder temp = new StringBuilder();
                  
                          int num = 0;

                  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

                  Method findGL has a Cognitive Complexity of 64 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public void findGL(Definitions diagram) {
                          StringBuilder ret = new StringBuilder(""); //$NON-NLS-1$
                          int i = 1;
                          for (RootElement rootElement : diagram.getRootElements()) {
                              if (rootElement instanceof Process) {

                  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

                  Method mouseClicked has 251 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    public void mouseClicked(MouseEvent me) {
                      // ok now find out the currently selected node
                      int x = me.getX();
                      int y = me.getY();
                      JTree tree = ontologyTreePanel.currentOntologyTree;

                    File DocumentRootImpl.java has 585 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /**
                     */
                    package eu.learnpad.transformations.metamodel_corpus.ado.impl;
                    
                    import org.eclipse.emf.common.notify.NotificationChain;

                      XwikiAdapterFactory has 68 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      public class XwikiAdapterFactory extends AdapterFactoryImpl {
                          /**
                           * The cached model package.
                           * <!-- begin-user-doc -->
                           * <!-- end-user-doc -->

                        File pkg-tabs-debug.js has 575 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * Ext JS Library 3.4.0
                         * Copyright(c) 2006-2011 Sencha Inc.
                         * licensing@sencha.com
                         * http://www.sencha.com/license

                          Function MenuMgr has a Cognitive Complexity of 62 (exceeds 5 allowed). Consider refactoring.
                          Open

                          Ext.menu.MenuMgr = function(){
                             var menus, 
                                 active, 
                                 map,
                                 groups = {}, 

                          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