casefoundation/weekly-roundup

View on GitHub
client/src/actions/Roundup/RoundupActions.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function roundupUpdate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function roundupUpdate(id, subject, to, cc, preface) {
  let validationError;
  if (!validateString(subject, 0, 255, true)) {
    validationError = `Invalid Subject. Must be 0-255 characters: ${subject}`;
  } else if (!validateString(preface, 0, 4166, true)) {
Severity: Minor
Found in client/src/actions/Roundup/RoundupActions.js - About 1 hr to fix

    Function roundupUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export function roundupUpdate(id, subject, to, cc, preface) {
    Severity: Minor
    Found in client/src/actions/Roundup/RoundupActions.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status