casefoundation/weekly-roundup

View on GitHub
client/src/actions/Auth/AuthActions.js

Summary

Maintainability
A
1 hr
Test Coverage

Function login has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function login(email, password) {
  let validateError;
  if (!validateEmail(email)) {
    validateError = `Invalid Email Format: ${email}`;
  } else if (!validatePassword(password)) {
Severity: Minor
Found in client/src/actions/Auth/AuthActions.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status