superdesk/superdesk-client-core

View on GitHub

Showing 3,654 of 3,654 total issues

Function bindActionKeyShortcuts has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    bindActionKeyShortcuts(selectedItem) {
        const {
            activityService,
            archiveService,
            keyboardManager,
Severity: Minor
Found in scripts/apps/search/components/ItemList.tsx - About 1 hr to fix

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

            link: function(scope, element, attrs, sdGrid) {
                sdGrid.addWidget(scope.widget, element);
    
                scope.removeWidget = function() {
                    sdGrid.removeWidget(scope.widget, element);
    Severity: Minor
    Found in scripts/apps/dashboard/grid/grid.ts - About 1 hr to fix

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

          render() {
              if (this.props.item.subject == null) {
                  return null;
              }
      
      
      Severity: Minor
      Found in scripts/apps/search/components/preview-subject.tsx - About 1 hr to fix

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

            render() {
                const highlights = this.getHighlights();
        
                const hasActiveHighlight = function() {
                    const statuses = this.getHighlightStatuses(highlights, this.props.item);
        Severity: Minor
        Found in scripts/apps/search/components/HighlightsInfo.tsx - About 1 hr to fix

          Function loadPlanningModals has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              loadPlanningModals() {
                  const session = ng.get('session');
                  const superdesk = ng.get('superdesk');
                  const activityService: IActivityService = ng.get('activityService');
          
          
          Severity: Minor
          Found in scripts/apps/search/components/Item.tsx - About 1 hr to fix

            Function fetchItem has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function fetchItem() {
                            var filter = [
                                {not: {term: {state: 'spiked'}}},
                                {bool:
                                {should: [{term: {unique_name: scope.meta.unique_name}},
            Severity: Minor
            Found in scripts/apps/search/directives/ItemGlobalSearch.ts - About 1 hr to fix

              Function initParameters has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function initParameters(params, urlParams, dateFilters) {
                      const parameters = urlParams || PARAMETERS;
                      let dateFilterTags = [];
              
                      dateFilters.forEach((dateFilter) => {
              Severity: Minor
              Found in scripts/apps/search/services/TagService.ts - About 1 hr to fix

                Function runSpellchecker has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    runSpellchecker() {
                        if (this.spellcheckerTimeout) {
                            window.clearTimeout(this.spellcheckerTimeout);
                        }
                
                
                Severity: Minor
                Found in scripts/core/ui/components/PlainTextEditor/PlainTextEditor.tsx - About 1 hr to fix

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

                      render() {
                          let classNames = ['tag-label'];
                  
                          const {type, color} = this.props;
                  
                  
                  Severity: Minor
                  Found in scripts/core/ui/components/TagLabel.tsx - About 1 hr to fix

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

                        render() {
                            const inlineStyles: React.CSSProperties = {
                                cursor: typeof this.props.onClick === 'function' ? 'pointer' : 'inherit',
                            };
                    
                    
                    Severity: Minor
                    Found in scripts/core/components/ListItem.tsx - About 1 hr to fix

                      Function TimepickerDirective has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function TimepickerDirective($document) {
                          return {
                              scope: {
                                  tt: '=ngModel',
                                  style: '@',
                      Severity: Minor
                      Found in scripts/core/ui/ui.ts - About 1 hr to fix

                        Function pruneNodes has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            pruneNodes() {
                                this.cleanUpDraftTables();
                        
                                this.tree.html(this.manageEmbeds(this.tree.html()));
                        
                        
                        Severity: Minor
                        Found in scripts/core/editor3/html/from-html/index.ts - About 1 hr to fix

                          Function debouncedFn has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              const debouncedFn = () => {
                                  cancelled = false;
                          
                                  if (firstCallTimestamp == null) {
                                      firstCallTimestamp = Date.now();
                          Severity: Minor
                          Found in scripts/core/helpers/debounce-async.ts - About 1 hr to fix

                            Function allowEditSuggestion has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            const allowEditSuggestion = (editorState, author, isBackward) => {
                                const selection = editorState.getSelection();
                                let newEditorState;
                                let tmpEditorState;
                            
                            
                            Severity: Minor
                            Found in scripts/core/editor3/helpers/suggestions.ts - About 1 hr to fix

                              Function getRangesExceedingLimit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function getRangesExceedingLimit(
                                  contentState: ContentState,
                                  limit: number,
                              ): IResult {
                                  const cached = cache.get(contentState);
                              Severity: Minor
                              Found in scripts/core/editor3/components/text-length-overflow-decorator.tsx - About 1 hr to fix

                                Function handlePastedText has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export function handlePastedText(text: string, _html: string): DraftHandleValue {
                                    const author = getCurrentAuthor();
                                    let html = _html;
                                
                                    if (typeof html === 'string') {
                                Severity: Minor
                                Found in scripts/core/editor3/components/handlePastedText.ts - About 1 hr to fix

                                  Function DateTimeHelperService has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function DateTimeHelperService() {
                                      /*
                                      * @param timestring 2016-03-01T04:45:00+0000
                                      * @param timezone Europe/London
                                      */
                                  Severity: Minor
                                  Found in scripts/core/datetime/datetime.ts - About 1 hr to fix

                                    Function PhoneHomeModalDirective has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export function PhoneHomeModalDirective(serverConfig, api, session) {
                                        let template = require('./views/phone-home-modal-directive.html');
                                    
                                        class PhoneController {
                                            data: any;
                                    Severity: Minor
                                    Found in scripts/core/directives/PhoneHomeModalDirective.ts - About 1 hr to fix

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

                                              link: function($scope, el, attr, ngModel) {
                                                  var indicator = angular.element(
                                                      '<div class="password-strength">' +
                                                          gettext('Strength') + ': <span class="label"></span>' +
                                                          '<div class="icon-question-sign"></div>' +
                                      Severity: Minor
                                      Found in scripts/core/directives/PasswordStrengthDirective.ts - About 1 hr to fix

                                        Function SourcesDirective has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function SourcesDirective() {
                                            var typeMap = {
                                                'video/mpeg': 'video/mp4',
                                            };
                                        
                                        
                                        Severity: Minor
                                        Found in scripts/core/upload/upload.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language