Showing 726 of 2,177 total issues
Function WebServerWrapper
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WebServerWrapper(server) {
var webserver = server;
function asArray(values) {
return util.isArray(values) ? values : [values];
Function esnUserNotificationListItem
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnUserNotificationListItem(_, $compile, esnUserNotificationTemplateProviderRegistry) {
function link(scope, element) {
var provider = esnUserNotificationTemplateProviderRegistry.get(scope.notification.category);
var notificationTemplate = provider && provider.template || 'esn-user-notification-external';
var forceClosePopoverOnClick = provider && provider.forceClosePopoverOnClick || false;
Function listByCursor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listByCursor(options = {}) {
const query = _.isEmpty(options) ? {} : { $and: [] };
if (options.domainIds && options.domainIds.length) {
query.$and.push({
Function getAvatarFromEmail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.getAvatarFromEmail = function(email, callback) {
var objectForEmail, type;
var types = Object.keys(avatarProviders);
async.whilst(
function() {
Function ESNOAuthApplicationListController
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ESNOAuthApplicationListController($log, $modal, $scope, ESNOauthApplicationClient) {
var self = this;
self.$onInit = $onInit;
self.openModal = openModal;
Function remove
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function(predicate) {
var defer = $q.defer();
var resolved = false;
var numProviderPromiseNotResolved = this.providersPromises.length;
var self = this;
Function compile
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
directive.compile = function() {
var link = previousCompile.apply(this, arguments);
return function(scope, element, attrs, controller) {
var ngModel;
if (detectUtils.isMobile()) {
Function _generateJWT
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _generateJWT() {
return new Promise((resolve, reject) => {
crypto.generateKeyPair(
'rsa',
{
Function userStatusSyncService
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function userStatusSyncService($q, $rootScope, _, userStatusClientService, userStatusService, USER_STATUS_EVENTS) {
return {
synchronize: synchronize
};
Function exports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies, lib) {
const cron = dependencies('cron');
const logger = dependencies('logger');
const websocket = require('./websocket')(dependencies, lib);
Function http
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function http(req, res, options) {
var endpointUrl = url.parse(options.endpoint);
var proxyPath = endpointUrl.pathname;
if (proxyPath[proxyPath.length - 1] !== '/') {
Function getGroupAddressbookHomes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getGroupAddressbookHomes(user, options) {
const { davServerUrl, ESNToken } = options;
const { getDavEndpoint, checkResponse } = require('./utils')(dependencies, { davServerUrl });
return getDavEndpoint(user)
Function finalize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.finalize = function(invitation, data, done) {
if (!invitation) {
return done(new Error('Invalid invitation request'));
}
Function loadUserDataForCollaboration
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadUserDataForCollaboration: function(user, collaboration) {
if (!user || !collaboration) {
return q.reject(new Error('User and collaboration are required'));
}
Function stopListen
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stopListen() {
if (!listening) { return; }
if (sio) {
sio.removeListener(CONTACT_WS.events.CREATED, onCreate);
Function contactListToggle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function contactListToggle(
$rootScope,
ContactListToggleDisplayService,
ContactListToggleEventService,
CONTACT_LIST_DISPLAY
Function ContactVirtualFollowingsLoaderService
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContactVirtualFollowingsLoaderService(followAPI, session, CONTACT_LIST_PAGE_SIZE) {
return {
getFollowingsCount: getFollowingsCount,
list: list
};
Function addressbookHome
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ContactAPIClient.addressbookHome = function(bookId) {
return {
addressbook: function(bookName) {
return {
Function ContactVirtualAddressBookPaginationProvider
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContactVirtualAddressBookPaginationProvider($log) {
function ContactVirtualAddressBookPaginationProvider(options) {
this.options = options;
Function addMembershipRequest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addMembershipRequest(req, res) {
const collaboration = req.collaboration;
const userAuthor = req.user;
const userTargetId = req.params.user_id;
const objectType = req.params.objectType;