superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/directives/SearchContainer.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function SearchContainer has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function SearchContainer() {
    const FILTERS_PANEL_PREFERENCES_KEY = 'search:filters_panel_open';
    var filtersPanelPreferences = {
        [FILTERS_PANEL_PREFERENCES_KEY]: {
            'type': 'bool',
Severity: Minor
Found in scripts/apps/search/directives/SearchContainer.ts - About 1 hr to fix

    Function SearchContainerController has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function SearchContainerController($scope, $location, pageTitle, preferencesService) {
                    const query = omit($location.search(), '_id', 'repo');
    
                    this.flags = $scope.flags || {};
                    this.flags.facets = !isEmpty(query);
    Severity: Minor
    Found in scripts/apps/search/directives/SearchContainer.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status