coronasafe/care_fe

View on GitHub
src/Providers/AuthUserProvider.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Function AuthUserProvider has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

export default function AuthUserProvider({
children,
unauthorized,
otpAuthorized,
}: Props) {
Severity: Minor
Found in src/Providers/AuthUserProvider.tsx - About 3 hrs to fix

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

value={{
signIn,
signOut,
verifyMFA,
isAuthenticating,
Severity: Minor
Found in src/Providers/AuthUserProvider.tsx and 2 other locations - About 40 mins to fix
src/components/Questionnaire/QuestionnaireEditor.tsx on lines 574..583
src/components/Questionnaire/QuestionnaireEditor.tsx on lines 779..788
Category
Status