LearnPAd/learnpad

View on GitHub

Showing 2,438 of 4,261 total issues

File pkg-forms-debug.js has 4533 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 ext-core-debug.js has 4220 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 ext-foundation-debug.js has 4111 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-grid-foundation-debug.js has 3639 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 swfobject has a Cognitive Complexity of 428 (exceeds 5 allowed). Consider refactoring.
          Open

          var swfobject = function() {
              
              var UNDEF = "undefined",
                  OBJECT = "object",
                  SHOCKWAVE_FLASH = "Shockwave Flash",

          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 jsonform.js has 3036 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* Copyright (c) 2012 Joshfire - MIT license */
          /**
           * @fileoverview Core of the JSON Form client-side library.
           *
           * Generates an HTML form from a structured data model and a layout description.

            Function DomQuery has a Cognitive Complexity of 410 (exceeds 5 allowed). Consider refactoring.
            Open

            Ext.DomQuery = function(){
                var cache = {}, 
                    simpleCache = {}, 
                    valueCache = {},
                    nonSpace = /\S/,

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

            Ext.dd.DragDropMgr = function() {
            
                var Event = Ext.EventManager;
            
                return {

            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 pkg-tree-debug.js has 2746 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 OntologyServiceImplSesame.java has 2690 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               *  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
               *
               *  This file is part of GATE (see http://gate.ac.uk/), and is free

                Method createExtendedMetaDataAnnotations has 1482 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected void createExtendedMetaDataAnnotations() {
                        String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";    
                        addAnnotation
                          (attachmentEClass, 
                           source, 

                  File XwikiPackageImpl.java has 2575 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /**
                   */
                  package eu.learnpad.transformations.metamodel_corpus.xwiki.impl;
                  
                  import org.eclipse.emf.ecore.EAttribute;

                    Function 9 has a Cognitive Complexity of 300 (exceeds 5 allowed). Consider refactoring.
                    Open

                    },{"./Report":6,"./SchemaCache":7}],9:[function(require,module,exports){
                    "use strict";
                    
                    var FormatValidators = require("./FormatValidators"),
                        JsonValidation   = require("./JsonValidation"),

                    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 data-foundation-debug.js has 2108 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 ext-dd-debug.js has 2023 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 4 has a Cognitive Complexity of 259 (exceeds 5 allowed). Consider refactoring.
                        Open

                        },{}],4:[function(require,module,exports){
                        "use strict";
                        
                        var FormatValidators  = require("./FormatValidators"),
                            Report            = require("./Report"),

                        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 ext-base-debug.js has 1850 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 EventManager has a Cognitive Complexity of 244 (exceeds 5 allowed). Consider refactoring.
                          Open

                          Ext.EventManager = function(){
                              var docReadyEvent,
                                  docReadyProcId,
                                  docReadyState = false,
                                  DETECT_NATIVE = Ext.isGecko || Ext.isWebKit || Ext.isSafari,

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

                              protected void createExtendedMetaDataAnnotations() {
                                  String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";    
                                  addAnnotation
                                    (adoxmlTypeEClass, 
                                     source, 

                            File AdoPackageImpl.java has 1737 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             */
                            package eu.learnpad.transformations.metamodel_corpus.ado.impl;
                            
                            import org.eclipse.emf.ecore.EAttribute;
                              Severity
                              Category
                              Status
                              Source
                              Language