XingFramework/xing-frontend-utils

View on GitHub

Showing 71 of 208 total issues

Function 22 has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"a1atscript":1}],22:[function(require,module,exports){
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
Severity: Major
Found in dist/xing-frontend-utils.js - About 3 hrs to fix

    Function 19 has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],19:[function(require,module,exports){
    "use strict";
    
    (function () {
    
    
    Severity: Major
    Found in dist/xing-frontend-utils.js - About 3 hrs to fix

      Function xngToastService has 78 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
      
        var factoryDef = {
          onShow: onShow,
          onRemove: onRemove,
      Severity: Major
      Found in dist/xing-frontend-utils.js - About 3 hrs to fix

        Function 3 has 77 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"a1atscript":1}],3:[function(require,module,exports){
        "use strict";
        
        Object.defineProperty(exports, "__esModule", {
          value: true
        Severity: Major
        Found in dist/xing-frontend-utils.js - About 3 hrs to fix

          Function RouteInitializer has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var RouteInitializer = (function () {
                function RouteInitializer(componentMapper) {
                  _classCallCheck(this, RouteInitializer);
          
                  this.componentMapper = componentMapper;
          Severity: Major
          Found in dist/xing-frontend-utils.js - About 3 hrs to fix

            Function xngToastService has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
            
              var factoryDef = {
                onShow: onShow,
                onRemove: onRemove,
            Severity: Major
            Found in src/xing-frontend-utils/components/toast/toast.js - About 3 hrs to fix

              Function 27 has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"a1atscript":1}],27:[function(require,module,exports){
              'use strict';
              
              Object.defineProperty(exports, '__esModule', {
                value: true
              Severity: Major
              Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                Function 2 has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{}],2:[function(require,module,exports){
                'use strict';
                
                Object.defineProperty(exports, '__esModule', {
                  value: true
                Severity: Major
                Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                  Function DirectiveObjectInjector has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var DirectiveObjectInjector = (function (_ListInjector) {
                        _inherits(DirectiveObjectInjector, _ListInjector);
                  
                        function DirectiveObjectInjector() {
                          _classCallCheck(this, DirectiveObjectInjector);
                  Severity: Major
                  Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                    Function ErrorLimiter has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var ErrorLimiter = (function () {
                      function ErrorLimiter(uiState, failsafeStateName) {
                        _classCallCheck(this, ErrorLimiter);
                    
                        this.uiState = uiState;
                    Severity: Major
                    Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                      Function InterimElementFactory has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function InterimElementFactory($q, $rootScope, $timeout, $rootElement, $animate, $xngCompiler) {
                      
                        return function createInterimElementService(defaults) {
                      
                          /**
                      Severity: Minor
                      Found in src/xing-frontend-utils/components/toast/interimElement.js - About 2 hrs to fix

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

                      function uiRouteLogger($rootScope, $state, noTable) {
                        if (noTable) {
                          $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
                            /*jshint -W075 */
                            console.log("Routing Event", event.name);
                      Severity: Major
                      Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                        Function uiRouteLogger has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export default function uiRouteLogger($rootScope, $state, noTable) {
                          if(noTable){
                            $rootScope.$on('$stateChangeStart', (event, toState, toParams, fromState, fromParams) => {
                              /*jshint -W075 */
                              console.log("Routing Event", event.name);
                        Severity: Major
                        Found in src/xing-frontend-utils/ui-route-logger.js - About 2 hrs to fix

                          Function 13 has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          },{"./responsive-menu.tpl.js":11,"a1atscript":1}],13:[function(require,module,exports){
                          'use strict';
                          
                          Object.defineProperty(exports, '__esModule', {
                            value: true
                          Severity: Major
                          Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                            Function ComponentInjector has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var ComponentInjector = (function (_ListInjector) {
                                  _inherits(ComponentInjector, _ListInjector);
                            
                                  function ComponentInjector() {
                                    _classCallCheck(this, ComponentInjector);
                            Severity: Major
                            Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                              Function Inflector has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              var Inflector = (function () {
                                function Inflector() {
                                  _classCallCheck(this, _Inflector);
                                }
                              
                              
                              Severity: Major
                              Found in dist/xing-frontend-utils.js - About 2 hrs to fix

                                Function 14 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },{"a1atscript":1}],14:[function(require,module,exports){
                                'use strict';
                                
                                function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
                                
                                
                                Severity: Minor
                                Found in dist/xing-frontend-utils.js - About 1 hr to fix

                                  Function RouteReader has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var RouteReader = (function () {
                                        function RouteReader(componentMapper) {
                                          _classCallCheck(this, RouteReader);
                                  
                                          this.componentMapper = componentMapper;
                                  Severity: Minor
                                  Found in dist/xing-frontend-utils.js - About 1 hr to fix

                                    Function xngCompilerService has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
                                    
                                      /**
                                       * @ngdoc service
                                       * @name $xngCompiler
                                    Severity: Minor
                                    Found in src/xing-frontend-utils/components/toast/compiler.js - About 1 hr to fix

                                      Function xngCompilerService has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function xngCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
                                      
                                        /**
                                         * @ngdoc service
                                         * @name $xngCompiler
                                      Severity: Minor
                                      Found in dist/xing-frontend-utils.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language