Showing 3,654 of 3,654 total issues
Function handleContentChanges
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleContentChanges(_changes: Array<IResourceChange>) {
const state = this.state;
const dataInitialized = state.data != null;
if (this.updatingRequestInProgress || dataInitialized !== true) {
Function updateWhenImageIsReady
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateWhenImageIsReady() {
var $img = element.find('.image-point__image').get(0);
function drawPointsFromModel() {
drawPoint($img);
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
class ItemComponent extends React.PureComponent<IPropsGenericFormItemComponent<IShow>> {
render() {
const {item, page} = this.props;
Function toServerFormat
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function toServerFormat(items: OrderedMap<string, ITagUi>, superdesk: ISuperdesk): IServerResponse {
const {assertNever} = superdesk.helpers;
const result: IServerResponse = {};
items.forEach((item) => {
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {gettext, longFormatDateTime, getRelativeOrAbsoluteDateTime} = superdeskApi.localization;
const {config} = superdeskApi.instance;
const {set, count, storageDestination} = this.props;
const storageDestinationText = storageDestination == null ?
Function createTemplateFromArticle
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createTemplateFromArticle(
// The new template will be based on this article
sourceArticle: IArticle,
templateName: string,
selectedDeskId: IDesk['_id'] | null,
Function getUserTemplates
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUserTemplates(
pageToFetch: number,
pageSize: number,
type: string,
searchString?: string,
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(): JSX.Element {
const allDesks = sdApi.desks.getAllDesks();
const selectedDesks = (this.state.selectedDesks ?? []).map((id) => allDesks.get(id));
return (
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {field, fieldsData, canBeToggled, toggledOn} = this.props;
const FieldEditorConfig = getField(field.fieldType);
const Container = this.getFieldContainer(
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {item, svc, flags, view, scope} = this.props;
const contents: any = [
'div',
Function constructor
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor($scope, $location, pageTitle, preferencesService, metadata, privileges, contacts) {
this.$scope = $scope;
this.$location = $location;
this.contacts = contacts;
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {item, page} = this.props;
return (
<ListItem
Function rewrite
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.rewrite = function(item): void {
var authoringWorkspace: AuthoringWorkspaceService = $injector.get('authoringWorkspace');
function getOnRewriteAfterMiddlewares()
: Array<IExtensionActivationResult['contributions']['entities']['article']['onRewriteAfter']> {
Function ProductsFactory
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ProductsFactory($q, api, contentFilters, $filter) {
/**
* Recursivly returns all products
*
* @return {*}
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<Modal
visible
zIndex={1050}
Function RoutingWidgetController
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RoutingWidgetController(desks, privileges, api, notify, $scope) {
this.canManage = privileges.privileges.desk_routing;
desks.initialize().then(() => {
this.desk = desks.getCurrentDesk();
Function TasksService
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TasksService(desks, $rootScope, api, datetimeHelper) {
this.statuses = [
{_id: 'todo', name: gettext('To Do')},
{_id: 'in_progress', name: gettext('In Progress')},
{_id: 'done', name: gettext('Done')},
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.previewOutput) {
return <div data-test-id={`gform-output--${this.props.formField.field}`}>{this.props.value}</div>;
}
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {availableActions} = this.props;
const actionsDropdownStyles: any = this.state.actionsDropdownOpen !== true ? {} : {
display: 'block',
Function link
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element) {
const MODEL_TIME_FORMAT = appConfig.model.timeformat;
const VIEW_TIME_FORMAT = appConfig.view.timeformat;
const POPUP = '.timepicker-popup';