luyadev/luya-module-admin

View on GitHub

Showing 503 of 503 total issues

Function withAngular has 786 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function withAngular(angular, navigator) {
 
'use strict';
 
var A_DAY_IN_MILLISECONDS = 86400000
Severity: Major
Found in src/resources/vendorlibs/angularjs-datepicker/angular-datepicker.js - About 3 days to fix

    File directives.js has 1434 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
    * Directive to generate e chart diagrams.
    *
    * uses echarts.js component.
    *
    Severity: Major
    Found in src/resources/js/directives.js - About 3 days to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      angular.module("ngLocale", [], ["$provide", function($provide) {
      var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
      function getDecimals(n) {
      n = n + '';
      var i = n.indexOf('.');
      Severity: Major
      Found in src/resources/angular-i18n/angular-locale_nl.js and 1 other location - About 3 days to fix
      src/resources/angular-i18n/angular-locale_it.js on lines 2..143

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      angular.module("ngLocale", [], ["$provide", function($provide) {
      var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
      function getDecimals(n) {
      n = n + '';
      var i = n.indexOf('.');
      Severity: Major
      Found in src/resources/angular-i18n/angular-locale_it.js and 1 other location - About 3 days to fix
      src/resources/angular-i18n/angular-locale_nl.js on lines 2..143

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

      angular.module("ngLocale", [], ["$provide", function($provide) {
      var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
      function getDecimals(n) {
      n = n + '';
      var i = n.indexOf('.');
      Severity: Major
      Found in src/resources/angular-i18n/angular-locale_en.js and 2 other locations - About 3 days to fix
      src/resources/angular-i18n/angular-locale_cn.js on lines 2..128
      src/resources/angular-i18n/angular-locale_de.js on lines 2..128

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

      angular.module("ngLocale", [], ["$provide", function($provide) {
      var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
      function getDecimals(n) {
      n = n + '';
      var i = n.indexOf('.');
      Severity: Major
      Found in src/resources/angular-i18n/angular-locale_cn.js and 2 other locations - About 3 days to fix
      src/resources/angular-i18n/angular-locale_de.js on lines 2..128
      src/resources/angular-i18n/angular-locale_en.js on lines 2..128

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

      angular.module("ngLocale", [], ["$provide", function($provide) {
      var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
      function getDecimals(n) {
      n = n + '';
      var i = n.indexOf('.');
      Severity: Major
      Found in src/resources/angular-i18n/angular-locale_de.js and 2 other locations - About 3 days to fix
      src/resources/angular-i18n/angular-locale_cn.js on lines 2..128
      src/resources/angular-i18n/angular-locale_en.js on lines 2..128

      Function datepickerDirective has 658 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      , datepickerDirective = function datepickerDirective($window, $compile, $locale, $filter, $interpolate, $timeout) {
       
      var linkingFunction = function linkingFunction($scope, element, attr) {
       
      $scope.today = new Date();
      Severity: Major
      Found in src/resources/vendorlibs/angularjs-datepicker/angular-datepicker.js - About 3 days to fix

        Function linkingFunction has 633 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var linkingFunction = function linkingFunction($scope, element, attr) {
         
        $scope.today = new Date();
         
        //get child input
        Severity: Major
        Found in src/resources/vendorlibs/angularjs-datepicker/angular-datepicker.js - About 3 days to fix

          File controllers.js has 1093 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

           
           
          zaa.controller("DefaultDashboardObjectController", ['$scope', '$http', '$sce', function($scope, $http, $sce) {
           
          $scope.data;
          Severity: Major
          Found in src/resources/js/controllers.js - About 2 days to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_fa.js and 1 other location - About 2 days to fix
            src/resources/angular-i18n/angular-locale_fr.js on lines 2..125

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_fr.js and 1 other location - About 2 days to fix
            src/resources/angular-i18n/angular-locale_fa.js on lines 2..125

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_tr.js and 3 other locations - About 2 days to fix
            src/resources/angular-i18n/angular-locale_el.js on lines 2..125
            src/resources/angular-i18n/angular-locale_es.js on lines 2..125
            src/resources/angular-i18n/angular-locale_hu.js on lines 2..125

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_es.js and 3 other locations - About 2 days to fix
            src/resources/angular-i18n/angular-locale_el.js on lines 2..125
            src/resources/angular-i18n/angular-locale_hu.js on lines 2..125
            src/resources/angular-i18n/angular-locale_tr.js on lines 2..125

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_hu.js and 3 other locations - About 2 days to fix
            src/resources/angular-i18n/angular-locale_el.js on lines 2..125
            src/resources/angular-i18n/angular-locale_es.js on lines 2..125
            src/resources/angular-i18n/angular-locale_tr.js on lines 2..125

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_el.js and 3 other locations - About 2 days to fix
            src/resources/angular-i18n/angular-locale_es.js on lines 2..125
            src/resources/angular-i18n/angular-locale_hu.js on lines 2..125
            src/resources/angular-i18n/angular-locale_tr.js on lines 2..125

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_vi.js and 1 other location - About 2 days to fix
            src/resources/angular-i18n/angular-locale_id.js on lines 2..125

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            angular.module("ngLocale", [], ["$provide", function($provide) {
            var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
            $provide.value("$locale", {
            "DATETIME_FORMATS": {
            "AMPMS": [
            Severity: Major
            Found in src/resources/angular-i18n/angular-locale_id.js and 1 other location - About 2 days to fix
            src/resources/angular-i18n/angular-locale_vi.js on lines 2..125

            Function controller has 417 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function ($scope, $http, $filter, $timeout, $q, HtmlStorage, cfpLoadingBar, Upload, ServiceFoldersData, ServiceFilesData, LuyaLoading, AdminToastService, ServiceFoldersDirectoryId, ServiceAdminTags, ServiceQueueWaiting) {
             
            // ServiceFoldersData inheritance
             
            $scope.foldersData = ServiceFoldersData.data;
            Severity: Major
            Found in src/resources/js/directives.js - About 2 days to fix

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              $('#twofaForm').submit(function (e) {
              $('#errorsSecureContainer').hide();
              $('.login-btn[type="submit"]').attr('disabled', true);
              $('.login-spinner').show();
              $('.login-btn-label').hide();
              Severity: Major
              Found in src/resources/js/login.js and 1 other location - About 2 days to fix
              src/resources/js/login.js on lines 55..90
              Severity
              Category
              Status
              Source
              Language