scripts/extensions/markForUser/src/get-article-actions-bulk.tsx
Function getActionsBulkInitialize
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getActionsBulkInitialize(superdesk: ISuperdesk) {
const {gettext} = superdesk.localization;
const {isLocked, isLockedInOtherSession} = superdesk.entities.article;
return function getActionsBulk(articles: Array<IArticle>) {
Function getActionsBulk
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function getActionsBulk(articles: Array<IArticle>) {
const someItemsLocked = articles.some(isLocked);
const someItemsLockedInOtherSession = articles.some(isLockedInOtherSession);
if (articles.some((article) => !canChangeMarkedUser(superdesk, article))) {