superdesk/superdesk-client-core

View on GitHub

Showing 3,654 of 3,654 total issues

Function link has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        link: function(scope) {
            scope.canPrintPreview = canPrintPreview;

            function overrideEdnote(template) {
                /* Override Editor note with given template or default one

    Function render has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        render() {
            const Widget = CC.AuthoringAttachmentsWidget != null ?
                CC.AuthoringAttachmentsWidget :
                AttachmentsWidgetComponent;
    
    
    Severity: Minor
    Found in scripts/apps/authoring/attachments/AttachmentsWidget.tsx - About 1 hr to fix

      Function deschedule has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          const deschedule = () => {
              const descheduled = () => {
                  const errors = [];
                  const success = [];
      
      
      Severity: Minor
      Found in scripts/apps/search/controllers/get-multi-actions.tsx - About 1 hr to fix

        Function MultieditFloatMenuDirective has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function MultieditFloatMenuDirective($document) {
            return {
                link: function(scope, elem) {
                    var open = false;
        
        
        Severity: Minor
        Found in scripts/apps/authoring/multiedit/multiedit.ts - About 1 hr to fix

          Function dbClick has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              dbClick(item) {
                  if (typeof this.props.onMonitoringItemDoubleClick === 'function') {
                      this.props.onMonitoringItemDoubleClick(item);
                      return;
                  }
          Severity: Minor
          Found in scripts/apps/search/components/ItemList.tsx - About 1 hr to fix

            Function getSortedFieldsFiltered has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const getSortedFieldsFiltered = (
                section: 'header' | 'content',
                editor: any,
                item: IArticle,
                hideMedia: boolean,
            Severity: Minor
            Found in scripts/apps/authoring/preview/utils.ts - About 1 hr to fix

              Function selectTerm has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          scope.selectTerm = function(term, $event) {
                              // while searching, allow to search for categories but don't select them
                              if (scope.tree?.[term?.[scope.uniqueField]] && !scope.allowEntireCat) {
                                  scope.openTree(term, $event);
                              } else if (term) {
              Severity: Minor
              Found in scripts/apps/authoring/metadata/metadata.ts - About 1 hr to fix

                Function initSelectedParameters has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function initSelectedParameters(params, objectOnly?: boolean) {
                        let parameters = params;
                
                        let selectedParameters = [];
                        const paramObject = {};
                Severity: Minor
                Found in scripts/apps/search/services/TagService.ts - About 1 hr to fix

                  Function preview has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              scope.preview = function preview(item) {
                                  if (multiSelectable) {
                                      if (_.findIndex(scope.selectedList, {_id: item._id}) === -1) {
                                          scope.selectedList.push(item);
                                      } else {
                  Severity: Minor
                  Found in scripts/apps/search/directives/SearchResults.ts - About 1 hr to fix

                    Function render has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            render() {
                                return (
                                    <Modal
                                        visible
                                        zIndex={1050}
                    Severity: Minor
                    Found in scripts/core/ui/components/options-modal.tsx - About 1 hr to fix

                      Function componentDidMount has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          componentDidMount() {
                              document.addEventListener('keydown', this.handleKeydown);
                              document.addEventListener('click', this.handleClickOutside);
                      
                              if (this.dom.root) {
                      Severity: Minor
                      Found in scripts/core/ui/components/Popup/Popup.tsx - About 1 hr to fix

                        Function renderSingleLevelSelect has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            renderSingleLevelSelect() {
                                return (
                                    <Popup
                                        close={this.props.onCancel}
                                        target={this.props.target}

                          Function render has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              render() {
                                  const renditions = this.props.item.renditions;
                                  const guid = this.props.item.guid;
                          
                                  if (renditions == null) {
                          Severity: Minor
                          Found in scripts/core/ui/components/video.tsx - About 1 hr to fix

                            Function tryLocking has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export function tryLocking<T extends ILockInfo & IBaseRestApiResponse>(
                                endpoint: string,
                                entityId: string,
                                force: boolean = false,
                            ): Promise<{success: boolean; latestEntity: T}> {
                            Severity: Minor
                            Found in scripts/core/helpers/locking-helpers.ts - About 1 hr to fix

                              Function changeCase has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function changeCase(state: IEditorStore, payload: {changeTo: ITextCase, selection: SelectionState}) {
                                  const getChangedText = (text: string) => {
                                      if (changeTo === 'uppercase') {
                                          return text.toUpperCase();
                                      } else if (changeTo === 'lowercase') {
                              Severity: Minor
                              Found in scripts/core/editor3/reducers/toolbar.tsx - About 1 hr to fix

                                Function render has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    render() {
                                        const mentionsInputStyle = typeof this.props.maxHeight !== 'number'
                                            ? mentionsStyle.input
                                            : {...mentionsStyle.input, '&multiLine': {
                                                ...mentionsStyle.input['&multiLine'],
                                Severity: Minor
                                Found in scripts/core/editor3/components/comments/CommentTextArea.tsx - About 1 hr to fix

                                  Function render has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      render() {
                                          const data = this.getData();
                                          const {numRows, numCols, withHeader} = data;
                                          const cx = this.props.className != null
                                              ? this.props.className
                                  Severity: Minor
                                  Found in scripts/core/editor3/components/tables/TableBlock.tsx - About 1 hr to fix

                                    Function insertContentInState has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export function insertContentInState(
                                        editorState: EditorState,
                                        pastedContent: ContentState,
                                        editorFormat: Array<string>): EditorState {
                                        let _pastedContent = pastedContent;
                                    Severity: Minor
                                    Found in scripts/core/editor3/components/handlePastedText.ts - About 1 hr to fix

                                      Function constructor has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          constructor() {
                                              this.list = element.all(by.repeater('subscriber in subscribers'));
                                              this.saveSubscriberButton = element(by.css('[ng-click="save()"]'));
                                              this.cancelSubscriberButton = element(by.css('[ng-click="cancel()"]'));
                                      
                                      
                                      Severity: Minor
                                      Found in e2e/client/specs/helpers/subscribers.ts - About 1 hr to fix

                                        Function waitReady has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        ElementFinder.prototype.waitReady = function(optStr) {
                                            // eslint-disable-next-line @typescript-eslint/no-this-alias
                                            var self = this;
                                            var specTimeoutMs = browser.allScriptsTimeout * 2;
                                            var driverWaitIterations = 0;
                                        Severity: Minor
                                        Found in e2e/client/specs/helpers/waitReady.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language