IntegerMan/angularIF

View on GitHub

Showing 383 of 1,099 total issues

Function OrderList has 231 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var OrderList = (function () {
    function OrderList(el, domHandler, objectUtils) {
        this.el = el;
        this.domHandler = domHandler;
        this.objectUtils = objectUtils;
Severity: Major
Found in src/assets/primeng/components/orderlist/orderlist.js - About 1 day to fix

    File inputmask.js has 548 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    "use strict";
    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    Severity: Major
    Found in src/assets/primeng/components/inputmask/inputmask.js - About 1 day to fix

      File dropdown.js has 543 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      "use strict";
      var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
          var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
          if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
          else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      Severity: Major
      Found in src/assets/primeng/components/dropdown/dropdown.js - About 1 day to fix

        Function TreeTable has 225 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var TreeTable = (function () {
            function TreeTable(el, domHandler, changeDetector, renderer) {
                this.el = el;
                this.domHandler = domHandler;
                this.changeDetector = changeDetector;
        Severity: Major
        Found in src/assets/primeng/components/treetable/treetable.js - About 1 day to fix

          Function Carousel has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
          Open

          var Carousel = (function () {
              function Carousel(el, domHandler, renderer, cd) {
                  this.el = el;
                  this.domHandler = domHandler;
                  this.renderer = renderer;
          Severity: Minor
          Found in src/assets/primeng/components/carousel/carousel.js - About 1 day 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

          File picklist.js has 531 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          "use strict";
          var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
              var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
              if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
              else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
          Severity: Major
          Found in src/assets/primeng/components/picklist/picklist.js - About 1 day to fix

            Function Carousel has 216 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var Carousel = (function () {
                function Carousel(el, domHandler, renderer, cd) {
                    this.el = el;
                    this.domHandler = domHandler;
                    this.renderer = renderer;
            Severity: Major
            Found in src/assets/primeng/components/carousel/carousel.js - About 1 day to fix

              File schedule.js has 521 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              "use strict";
              var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
              Severity: Major
              Found in src/assets/primeng/components/schedule/schedule.js - About 1 day to fix

                Function OrganizationChart has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
                Open

                var OrganizationChart = (function () {
                    function OrganizationChart(el, domHandler) {
                        this.el = el;
                        this.domHandler = domHandler;
                        this.selectionChange = new core_1.EventEmitter();
                Severity: Minor
                Found in src/assets/primeng/components/organizationchart/organizationchart.js - About 1 day 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

                File dialog.js has 498 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                "use strict";
                var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                Severity: Minor
                Found in src/assets/primeng/components/dialog/dialog.js - About 7 hrs to fix

                  File shared.js has 492 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  "use strict";
                  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                  Severity: Minor
                  Found in src/assets/primeng/components/common/shared.js - About 7 hrs to fix

                    File colorpicker.js has 483 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    "use strict";
                    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                    Severity: Minor
                    Found in src/assets/primeng/components/colorpicker/colorpicker.js - About 7 hrs to fix

                      Function Spinner has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var Spinner = (function () {
                          function Spinner(el, domHandler) {
                              this.el = el;
                              this.domHandler = domHandler;
                              this.onChange = new core_1.EventEmitter();
                      Severity: Major
                      Found in src/assets/primeng/components/spinner/spinner.js - About 7 hrs to fix

                        File webpack.config.js has 471 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        const fs = require('fs');
                        const path = require('path');
                        const CopyWebpackPlugin = require('copy-webpack-plugin');
                        const ProgressPlugin = require('webpack/lib/ProgressPlugin');
                        const CircularDependencyPlugin = require('circular-dependency-plugin');
                        Severity: Minor
                        Found in webpack.config.js - About 7 hrs to fix

                          Function ConfirmDialog has 178 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var ConfirmDialog = (function () {
                              function ConfirmDialog(el, domHandler, renderer, confirmationService, zone) {
                                  var _this = this;
                                  this.el = el;
                                  this.domHandler = domHandler;
                          Severity: Major
                          Found in src/assets/primeng/components/confirmdialog/confirmdialog.js - About 7 hrs to fix

                            Function ContextMenu has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                            Open

                            var ContextMenu = (function () {
                                function ContextMenu(el, domHandler, renderer) {
                                    this.el = el;
                                    this.domHandler = domHandler;
                                    this.renderer = renderer;
                            Severity: Minor
                            Found in src/assets/primeng/components/contextmenu/contextmenu.js - About 6 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

                            File treetable.js has 453 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            "use strict";
                            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                            Severity: Minor
                            Found in src/assets/primeng/components/treetable/treetable.js - About 6 hrs to fix

                              File fileupload.js has 451 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              "use strict";
                              var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                                  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                                  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                                  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                              Severity: Minor
                              Found in src/assets/primeng/components/fileupload/fileupload.js - About 6 hrs to fix

                                Function Galleria has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                                Open

                                var Galleria = (function () {
                                    function Galleria(el, domHandler) {
                                        this.el = el;
                                        this.domHandler = domHandler;
                                        this.panelWidth = 600;
                                Severity: Minor
                                Found in src/assets/primeng/components/galleria/galleria.js - About 6 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 Menu has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
                                Open

                                var Menu = (function () {
                                    function Menu(el, domHandler, renderer) {
                                        this.el = el;
                                        this.domHandler = domHandler;
                                        this.renderer = renderer;
                                Severity: Minor
                                Found in src/assets/primeng/components/menu/menu.js - About 6 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

                                Severity
                                Category
                                Status
                                Source
                                Language