luyadev/luya-module-admin

View on GitHub

Showing 331 of 503 total issues

Function withAngular has a Cognitive Complexity of 438 (exceeds 5 allowed). Consider refactoring.
Open

(function withAngular(angular, navigator) {

  'use strict';

  var A_DAY_IN_MILLISECONDS = 86400000
Severity: Minor
Found in src/resources/vendorlibs/angularjs-datepicker/angular-datepicker.js - About 1 wk 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 formdirectives.js has 2127 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/** ZAA ANGULAR FORM INPUT DIRECTIVES */


/**
 * @ngdoc directive
Severity: Major
Found in src/resources/js/formdirectives.js - About 5 days to fix

    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

        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

              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

                File angular-datepicker.js has 789 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*global angular document navigator*/
                (function withAngular(angular, navigator) {
                
                  'use strict';
                
                
                Severity: Major
                Found in src/resources/vendorlibs/angularjs-datepicker/angular-datepicker.js - About 1 day to fix

                  File admin.php has 508 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  return [
                      'language_name' => 'Русский',
                      'button_save' => 'Сохранить',
                  Severity: Major
                  Found in src/messages/ru/admin.php - About 1 day to fix

                    File admin.php has 508 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    return [
                        'language_name' => 'Português',
                        'button_save' => 'Salvar',
                    Severity: Major
                    Found in src/messages/pt/admin.php - About 1 day to fix

                      File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      
                      return [
                          'language_name' => 'Bahasa',
                          'button_save' => 'Simpan',
                      Severity: Major
                      Found in src/messages/id/admin.php - About 1 day to fix

                        File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        return [
                            'language_name' => 'angol',
                            'button_save' => 'Mentés',
                        Severity: Major
                        Found in src/messages/hu/admin.php - About 1 day to fix

                          File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          return [
                              'language_name' => 'Deutsch',
                              'button_save' => 'Speichern',
                          Severity: Major
                          Found in src/messages/de/admin.php - About 1 day to fix

                            File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            return [
                                'language_name' => 'فارسی',
                                'button_save' => 'ذخیره',
                            Severity: Major
                            Found in src/messages/fa/admin.php - About 1 day to fix

                              File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              
                              return [
                                  'language_name' => 'Italiano',
                                  'button_save' => 'Salva',
                              Severity: Major
                              Found in src/messages/it/admin.php - About 1 day to fix

                                File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                
                                return [
                                    'language_name' => 'Dutch',
                                    'button_save' => 'Opslaan',
                                Severity: Major
                                Found in src/messages/nl/admin.php - About 1 day to fix

                                  File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  return [
                                      'language_name' => 'Български',
                                      'button_save' => 'Запазване',
                                  Severity: Major
                                  Found in src/messages/bg/admin.php - About 1 day to fix

                                    File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    
                                    return [
                                        'language_name' => 'Українська',
                                        'button_save' => 'Зберегти',
                                    Severity: Major
                                    Found in src/messages/ua/admin.php - About 1 day to fix

                                      File admin.php has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      
                                      return [
                                          'language_name' => 'English',
                                          'button_save' => 'Save',
                                      Severity: Major
                                      Found in src/messages/en/admin.php - About 1 day to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language