coronasafe/care_fe

View on GitHub
cypress/utils/facilityData.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if (useSpecialPrefix) {
const specialPrefixIndex = randomBytes[0] % specialPrefixes.length;
const specialPrefix = specialPrefixes[specialPrefixIndex];
return `${specialPrefix} GHC ${location.name}`;
} else {
Severity: Minor
Found in cypress/utils/facilityData.ts and 1 other location - About 55 mins to fix
cypress/utils/facilityData.ts on lines 159..163

Similar blocks of code found in 2 locations. Consider refactoring.
Open

} else {
const prefixIndex = randomBytes[0] % facilityPrefixes.length;
const prefix = facilityPrefixes[prefixIndex];
return `${prefix} ${location.name}`;
}
Severity: Minor
Found in cypress/utils/facilityData.ts and 1 other location - About 55 mins to fix
cypress/utils/facilityData.ts on lines 155..159

There are no issues that match your filters.

Category
Status