Showing 726 of 2,177 total issues
Function GoogleDisplayShell
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var GoogleDisplayShell = function(shell) {
if (shell) {
this.shell = shell;
this.overlayIcon = {iconClasses: 'i-contact-google'};
this.dropDownMenuDirective = 'google-menu-items';
Function validate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validate(moduleName, configName, value) {
const module = registry.getFromModule(moduleName);
if (!module) {
return q({
Function save
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function save(notification, callback) {
if (!notification) {
return callback(new Error('Notification can not be null'));
}
Function generateFromText
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateFromText(options) {
if (!options || !options.text) {
return null;
}
Function inspectConfigurations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function inspectConfigurations(modules, domainId, userId) {
let role;
if (domainId && userId) {
role = ROLE.user;
Function list
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function list(options) {
var defer = q.defer();
var query = {};
if (options.type) {
Function deleteFoundsAndContinueSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deleteFoundsAndContinueSearch = founds => {
scrollIds.push(founds._scroll_id);
if (founds.hits.total === 0) {
return q.when({ deleted });
Function getCollaborationsForTuple
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getCollaborationsForTuple(tuple, callback) {
if (!tuple) {
return callback(new Error('Tuple is required'));
}
Function $onInit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $onInit() {
self.error = false;
self.loading = true;
objectTypeResolver.resolve(self.notification.complement.objectType, self.notification.complement.id)
Function replaceItem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Categorize.prototype.replaceItem = function replaceItem(item) {
var self = this;
var letter = charAPI.getAsciiUpperCase(item[self.sortBy].charAt(0)) || self.keepAllKey;
var oldCategory = self.getItemCategories(item)[0];
var oldCategoryIndex = self.keys.indexOf(oldCategory);
Function followAPI
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function followAPI(esnRestangular, session) {
return {
follow: follow,
unfollow: unfollow,
getFollowers: getFollowers,
Function esnSearchService
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnSearchService(_, $state) {
return {
search: search
};
Function esnShortcutsGlobal
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnShortcutsGlobal(
esnShortcuts,
esnShortcutsSheet,
esnShortcutsAction,
ESN_SHORTCUTS_DEFAULT_CATEGORY
Function esnAttachmentViewerService
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnAttachmentViewerService($log, $rootScope, $compile, esnAttachmentViewerGalleryService) {
var currentItem = {};
var viewer = null;
return {
Function controlcenterGeneralController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$q,
$window,
esnUserConfigurationService,
asyncAction,
homePageService,
Function deleteContact
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$rootScope,
$q,
contactService,
gracePeriodService,
notificationFactory,
Consider simplifying this complex logical expression. Open
Open
if (next && next.name && nextParams &&
next.name === 'contact.addressbooks.edit' &&
nextParams.bookId === $scope.bookId &&
nextParams.bookName === $scope.bookName &&
nextParams.cardId === $scope.cardId) {
Function ContactSidebarController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$scope,
$q,
_,
userAPI,
userUtils,
Function contactAddressbookSettingsController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$q,
_,
$state,
$stateParams,
asyncAction,
Function registerDefaultAddressbookDisplayShell
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
contactAddressbookDisplayShellRegistry,
ContactDefaultAddressbookDisplayShell,
contactDefaultAddressbookHelper,
contactAddressbookActionEdit,
contactAddressbookActionDelete,