src/main/webapp/js/services.js
File services.js
has 389 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
/* Services */
angular.module('LunchyApp.services', []).
Function PasswordStrengthService
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PasswordStrengthService = function(emptyAllowed) {
this.passStrength = null;
this.passStrengthClass = null;
this.emptyAllowed = emptyAllowed ? true : false;
Avoid too many return
statements within this function. Open
Open
return ('' + obj).toLowerCase().indexOf(text) > -1;