superdesk/superdesk-client-core

View on GitHub
scripts/core/datetime/reldate-directive-complex.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

function ReldateComplex() {
    var COMPARE_FORMAT = appConfig.model.dateformat;
    var DATE_FORMAT = appConfig.view.dateformat || appConfig.model.dateformat;
    var TIME_FORMAT = appConfig.view.timeformat || appConfig.model.timeformat;
    var DISPLAY_DATE_FORMAT = DATE_FORMAT + ' ' + TIME_FORMAT;
Severity: Minor
Found in scripts/core/datetime/reldate-directive-complex.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status