Showing 331 of 503 total issues
Function withAngular
has a Cognitive Complexity of 438 (exceeds 5 allowed). Consider refactoring. Open
Open
(function withAngular(angular, navigator) {
'use strict';
var A_DAY_IN_MILLISECONDS = 86400000
- Read upRead up
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
Open
/** ZAA ANGULAR FORM INPUT DIRECTIVES */
/**
* @ngdoc directive
Function withAngular
has 786 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function withAngular(angular, navigator) {
'use strict';
var A_DAY_IN_MILLISECONDS = 86400000
File directives.js
has 1434 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Directive to generate e chart diagrams.
*
* uses echarts.js component.
*
Function datepickerDirective
has 658 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, datepickerDirective = function datepickerDirective($window, $compile, $locale, $filter, $interpolate, $timeout) {
var linkingFunction = function linkingFunction($scope, element, attr) {
$scope.today = new Date();
Function linkingFunction
has 633 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var linkingFunction = function linkingFunction($scope, element, attr) {
$scope.today = new Date();
//get child input
File controllers.js
has 1093 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
zaa.controller("DefaultDashboardObjectController", ['$scope', '$http', '$sce', function($scope, $http, $sce) {
$scope.data;
Function controller
has 417 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($scope, $http, $filter, $timeout, $q, HtmlStorage, cfpLoadingBar, Upload, ServiceFoldersData, ServiceFilesData, LuyaLoading, AdminToastService, ServiceFoldersDirectoryId, ServiceAdminTags, ServiceQueueWaiting) {
// ServiceFoldersData inheritance
$scope.foldersData = ServiceFoldersData.data;
File angular-datepicker.js
has 789 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*global angular document navigator*/
(function withAngular(angular, navigator) {
'use strict';
File admin.php
has 508 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Русский',
'button_save' => 'Сохранить',
File admin.php
has 508 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Português',
'button_save' => 'Salvar',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Bahasa',
'button_save' => 'Simpan',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'angol',
'button_save' => 'Mentés',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Deutsch',
'button_save' => 'Speichern',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'فارسی',
'button_save' => 'ذخیره',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Italiano',
'button_save' => 'Salva',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Dutch',
'button_save' => 'Opslaan',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Български',
'button_save' => 'Запазване',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'Українська',
'button_save' => 'Зберегти',
File admin.php
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'language_name' => 'English',
'button_save' => 'Save',