Showing 3,654 of 3,654 total issues
Function MediaMetadata
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function MediaMetadata(userList, archiveService, metadata, $timeout) {
return {
scope: {
item: '=',
},
Function generateCrops
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateCrops(data) {
const item = _.cloneDeep($scope.data.item);
const renditions = _.cloneDeep($scope.data.renditions);
const renditionNames = [];
const savingImagePromises = [];
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="sd-kanban-list sd-pdding-x--2 sd-padding-t--2">
{
this.props.desks.map((desk) => {
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {item, page} = this.props;
const formConfig = getFormConfig();
return (
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
var listItems;
var className;
const articleDisplayWidgets = flatMap(
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {label, value, labelKey, allowCustom, readOnly, invalid, required, onFocus, ...props} = this.props;
return (
<div>
Function onDrop
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onDrop(event) {
this.setState({over: false});
let handled = false;
const block = getEditorBlock(event);
Function constructor
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
this.previewTitle = element(by.className('lightbox-title'));
this.switchToTab = function(name) {
element(by.id(name)).click();
File multi-edit-modal.tsx
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {sdApi} from 'api';
import {Spacer} from 'core/ui/components/Spacer';
import {getArticleLabel, gettext} from 'core/utils';
import React from 'react';
import {IArticle, IAuthoringOptions, ITopBarWidget} from 'superdesk-api';
File search_spec.ts
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable newline-per-chained-call */
import {element, browser, protractor, by} from 'protractor';
import {monitoring} from './helpers/monitoring';
File content_filters_spec.ts
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* tslint:disable:max-line-length */
import {browser, protractor} from 'protractor';
import {filterConditions} from './helpers/filter_conditions';
File users_spec.ts
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable newline-per-chained-call */
import {element, browser, protractor, by, $} from 'protractor';
import {el, els, ECE} from '@superdesk/end-to-end-testing-helpers';
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {gettext} = superdeskApi.localization;
const {assertNever} = superdeskApi.helpers;
if (this.props.assets.length === 0) {
Function getItemTemplate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getItemTemplate(that: Editor) {
return class SortableItemComponent extends React.PureComponent<{item: IArticle}> {
render() {
const {item} = this.props;
const {readOnly} = that.props;
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {contentProfile} = this.props;
const allFields = contentProfile.header.merge(contentProfile.content);
const resolvedSuggestions = this.getResolvedSuggestions();
Function save
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save(state: IStateLoaded<T>): Promise<T> {
const {authoringStorage} = this.props;
if ((this.props.validateBeforeSaving ?? true) === true) {
const {profile} = state;
Function getItemTemplate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getItemTemplate(that: Editor) {
return class SortableItemComponent extends React.PureComponent<{item: IArticle}> {
render() {
const {item} = this.props;
const {readOnly} = that.props;
Function LegalArchiveController
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function LegalArchiveController($scope, $location, legal, preferencesService) {
var viewUpdate = {'archive:view': {
allowed: ['mgrid', 'compact'],
category: 'archive',
view: 'mgrid',
Function getVersions
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getVersions = function(item, deskService, versionType) {
if (this.isLegal(item)) {
return api.find('legal_archive', item._id, {version: 'all', max_results: 200})
.then((result) => {
_.each(result._items, (version) => {
Function WorkqueueCtrl
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$scope,
$rootScope,
$route,
workqueue: WorkqueueService,
authoringWorkspace: AuthoringWorkspaceService,