Showing 726 of 2,177 total issues
Function exports
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies) {
var googleContactToVcard = require('./mapping')(dependencies);
var importContactClient = dependencies('contact-import').lib.import;
var CONTACT_IMPORT_ERROR = dependencies('contact-import').constants.CONTACT_IMPORT_ERROR;
Function ContactSidebarController
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContactSidebarController(
$scope,
$q,
_,
userAPI,
Function exports
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function() {
function getFormattedName(json) {
if (json.title[0]) {
return json.title[0];
Function link
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope) {
scope.streams = scope.streams || [];
scope.streams = scope.streams.concat(scope.activitystream);
scope.lastPost = {
Function contactAddressbookACLHelper
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function contactAddressbookACLHelper(
_,
session,
contactAddressbookParser,
DEFAULT_ADDRESSBOOK_NAME,
Function link
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link(scope, element, attrs) {
if (deviceDetector.isMobile()) { return; }
var tooltipElement;
var startX, startY;
File configuration.js
has 343 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
const q = require('q');
const { promisify } = require('util');
const composableMw = require('composable-middleware');
Function contactAddressbookSharedConfigurationController
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function contactAddressbookSharedConfigurationController(
$log,
_,
asyncAction,
session,
Function profileEditController
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function profileEditController(
$q,
$state,
esnConfigApi,
esnConfig,
Function exports
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies, options = {}) {
const searchClient = require('../search')(dependencies);
const { getGroupAddressbookHomes } = require('./group-addressbook-home')(dependencies);
const {
ESNToken,
Function ContactShowController
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContactShowController(
$log,
$scope,
$state,
$timeout,
Function exports
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = dependencies => {
const coreUserModule = dependencies('user');
const esnConfig = dependencies('esn-config');
const logger = dependencies('logger');
const client = require('../client')(dependencies);
Function VcardBuilder
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function VcardBuilder(ICAL, ContactsHelper) {
this.toVcard = function(shell) {
var prop;
var vcard = new ICAL.Component('vcard');
Function start
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start(callback) {
if (!webserver.port && !webserver.ssl_port) {
console.error('The webserver needs to be configured before it is started');
process.exit(1);
Function esnCollaborationInviteUsers
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnCollaborationInviteUsers(
$q,
$rootScope,
notificationFactory,
session,
Function esnConfigApi
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnConfigApi(Restangular, esnRestangular, ESN_CONFIG_SCOPE) {
return {
inspectPlatformConfigurations: inspectPlatformConfigurations,
inspectDomainConfigurations: inspectDomainConfigurations,
inspectUserConfigurations: inspectUserConfigurations,
Function exports
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = dependencies => {
const technicalUser = dependencies('technical-user');
const userModule = dependencies('user');
const contactModule = dependencies('contact');
const logger = dependencies('logger');
File index.js
has 325 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var mongoose = require('mongoose');
var async = require('async');
var attachments = require('./attachments');
Function sendMessage
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.sendMessage = function() {
if (!$scope.messageContent || $scope.messageContent.trim().length === 0) {
$scope.displayError('You can not say nothing!');
return;
Function exports
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(domains, host) {
var jmapHost = process.env.JMAP_SERVER_HOST || host || 'localhost';
var port = process.env.JMAP_SERVER_PORT || 1080;
var path = process.env.JMAP_SERVER_PATH || 'jmap';
var isJmapSendingEnabled = process.env.JMAP_SENDING_ENABLED !== 'false';