Showing 3,654 of 3,654 total issues
Function FilterConditionsController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function FilterConditionsController($scope, contentFilters, notify, modal, $filter, content) {
Function render
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
render() {
const {languages} = this.state;
if (languages == null) {
return null;
- 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 DeskeditStages
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function DeskeditStages(api, WizardHandler, tasks, desks, notify, macros) {
Function ContactList
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$timeout,
$filter,
search,
datetime,
Keys,
Function TemplatesService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function TemplatesService(api, session, $q, preferencesService, privileges, desks) {
Function IngestSourcesContent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function IngestSourcesContent(ingestSources, api, $location,
modal, $filter, privileges) {
Function MarkedItemTitle
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function MarkedItemTitle(desks, authoring, highlightsService, $filter, $location, $timeout) {
Function upload
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
this.upload = function(dictionary, data, file, success, error, progress) {
Function ItemPriority
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function ItemPriority(metadata) {
metadata.initialize();
return {
scope: {priority: '='},
template: [
- 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 ArchiveService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function ArchiveService(desks, session, api, $q, search, $location) {
Function MediaPreview
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function MediaPreview(api, $rootScope, desks, superdesk, content, storage) {
Function UserEnableCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function UserEnableCommand(api, data, $q, notify, usersService, $rootScope) {
Function ProfileService
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function ProfileService(api) {
var RESOURCE = 'activity';
/**
* Get all activity of single user, being it content related or not
- 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 UserRolesDirective
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function UserRolesDirective(api, notify, modal, $filter, _, metadata) {
Function HighlightsConfig
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function HighlightsConfig($scope, highlightsService, desks, api, notify, modal) {
Function UserListController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function UserListController($scope, $location, api, _, session, usersService) {
Function CommentsCtrl
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function CommentsCtrl($scope, $routeParams, commentsService) {
$scope.text = null;
$scope.saveEnterFlag = false;
$scope.$watch('item._id', reload);
$scope.users = [];
- 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 ItemUrgency
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function ItemUrgency(metadata) {
metadata.initialize();
return {
scope: {urgency: '='},
template: [
- 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 ContentResults
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
export function ContentResults($location, preferencesService, packages: IPackagesService, tags, asset, search) {
Function UserImportService
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function UserImportService(api, $q) {
function reject(key, message) {
var error: any = {};
error[key] = 1;
- 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"