coronasafe/care_fe

View on GitHub
cypress/utils/commonUtils.ts

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 2 of 2 total issues

Function generateRandomCharacter has 140 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function generateRandomCharacter(
options: {
charLimit?: number;
paragraphCount?: number;
} = {},
Severity: Major
Found in cypress/utils/commonUtils.ts - About 5 hrs to fix

File commonUtils.ts has 259 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Utility Functions
function getRandomIndex(max: number): number {
const randomBytes = new Uint8Array(1);
crypto.getRandomValues(randomBytes);
return randomBytes[0] % max;
Severity: Minor
Found in cypress/utils/commonUtils.ts - About 2 hrs to fix

There are no issues that match your filters.

Category
Status