superdesk/superdesk-client-core

View on GitHub
build-tools/src/po-to-json/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

function removeInvalidTranslations(jsonFilePath, filename) {
    var translations = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8'));

    const KEY_REGEX = /{{ ?(.+?) ?}}/g;

Severity: Minor
Found in build-tools/src/po-to-json/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status