Showing 52 of 150 total issues
Function getByUUID
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getByUUID(uuid) {
var deferred = $q.defer();
storageService.find(storageService.INVENTORY, uuid).then(function (data) {
var inventoryLine = data;
Function controller
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($q, $log, $scope, i18n, config, pouchdb, localDocs, growl) {
Function controller
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function ($stateParams, $state, $scope, surveyFactory, growl, appConfig, i18n, alertFactory) {
Function controller
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($scope, $window, i18n, appConfigService, deviceInfoFactory, backgroundSyncService, analyticsSyncService) {
Function controller
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function(appConfig, $state, $scope, isStockCountReminderDue, $rootScope, reminderFactory, i18n) {
Function getProductTypeCounts
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var getProductTypeCounts = function($q, $log, inventoryRulesFactory, productTypeFactory, appConfig, appConfigService) {
Function controller
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($scope, settings, settingsService, growl, i18n, utility) {
Function aggregatedInventory
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
aggregatedInventory: function($q, $log, appConfig, inventoryFactory, dashboardfactory, settings) {
Avoid deeply nested control flow statements. Open
Open
for(var j in wasteCount.reason[i]){
if(wasteCount.reason[i][j] !== 0 && wasteCount.reason[i][j] !== ''){
arr.push(
{
header: false,
Function controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($stateParams, i18n, growl, alertFactory, $scope) {
Function controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($scope, $log, dashboardfactory, keys, aggregatedInventory) {
Function controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function($log, $scope, localDocs, config, pouchdb) {