superdesk/superdesk-client-core

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

Summary

Maintainability
A
2 hrs
Test Coverage

Function EditTimeInterval has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function EditTimeInterval() {
    return {
        scope: {
            initialValue: '=',
            onChange: '=',
Severity: Minor
Found in scripts/apps/search/directives/EditTimeInterval.ts - About 1 hr to fix

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

            link: function(scope: IScope) {
                const getDefaults = (): IModel => ({
                    everyDay: 'true',
                    customWeekdays: [],
                    everyHour: 'true',
    Severity: Minor
    Found in scripts/apps/search/directives/EditTimeInterval.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status