coronasafe/care_fe

View on GitHub
src/Locale/update_locale.js

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function compareBothFiles has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function compareBothFiles(defaultFile, newFile) {
for (const file in defaultFile) {
const newObj = {};
const defaultJSON = defaultFile[file];
const existingJSON = newFile[file];
Severity: Minor
Found in src/Locale/update_locale.js - About 35 mins to fix
Category
Status