Showing 726 of 2,177 total issues
Function MultipleAddressBookPaginationProvider
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
$log,
PageAggregatorService,
AddressBookPaginationProvider,
ContactVirtualAddressBookPaginationProvider,
ContactShellComparator,
Function ESNSearchResultController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
_,
$stateParams,
$q,
searchProviders,
esnSearchQueryService,
Function ESNCollaborationMembershipRequestsWidgetController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
$rootScope,
esnCollaborationClientService,
esnCollaborationMembershipRequestsPaginationProvider,
infiniteScrollHelper,
PageAggregatorService,
Function boxOverlayManager
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
function boxOverlayManager(_, $rootScope, $window, $compile, $http, $templateCache, notificationFactory, ESN_BOX_OVERLAY_MAX_WINDOWS) {
Function directive
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
$compile,
matchmedia,
ESN_MEDIA_QUERY_SM_XS,
ESN_MEDIA_QUERY_MD,
ESN_HEADER_HEIGHT_MD,
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(grunt) {
grunt.registerMultiTask('splitfiles', 'split the files and run separate targets', function() {
var options = this.options({
chunk: 50,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(dependencies) {
var cron = dependencies('cron');
var logger = dependencies('logger');
var config = dependencies('config')('cronjob');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
module.exports = function(dependencies) {
var logger = dependencies('logger');
var configHelpers = dependencies('helpers').config;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function get
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
function get(req, res) {
if (!req.query.objectType) {
if (!req.query.email || typeof req.query.email !== 'string' || req.query.email.length === 0) {
return res.status(400).json({ error: { code: 400, message: 'Bad request', details: 'When no objectType is provided, email is mandatory and must be a non-empty string'}});
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getMine
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
function getMine(req, res) {
function streamsCallback(err, streams) {
if (err) {
return res.status(500).json({error: {code: 500, message: 'Server error', details: err.message}});
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function listByCursor
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
function listByCursor(options = {}) {
const query = _.isEmpty(options) ? {} : { $and: [] };
if (options.domainIds && options.domainIds.length) {
query.$and.push({
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
module.exports = collaborationModule => {
return {
collaborationJoinHandler,
membershipAcceptedHandler,
membershipInviteHandler,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function run
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
_,
accountMessageRegistry,
accountService,
dynamicDirectiveService,
socialHelper,
Function contactAddressbookSettingsMainController
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
_,
contactAddressbookService,
CONTACT_ADDRESSBOOK_PUBLIC_RIGHT,
CONTACT_SHARING_SHARE_ACCESS,
CONTACT_SHARING_SUBSCRIPTION_TYPE,
Function contactAddressbookSharedConfigurationController
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
$log,
_,
asyncAction,
session,
contactAddressbookService,
Function ContactShellBuilder
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
$log,
$q,
ContactShell,
ContactShellHelper,
contactUpdateDataService,
Function addMembershipRequest
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function addMembershipRequest(objectType, collaboration, userAuthor, userTarget, workflow, actor, callback) {
Function attachmentAlternativeUploaderModalNoUploaderController
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
$q,
$filter,
$scope,
$modal,
_,
Function followerListController
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function followerListController($scope, session, userUtils, FollowScrollBuilder, FollowPaginationHelper, _, FOLLOW_PAGE_SIZE) {
Function ESNCollaborationMemberController
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
$log,
$rootScope,
notificationFactory,
session,
esnCollaborationService,