Coursemology/coursemology2

View on GitHub
client/app/bundles/course/survey/containers/QuestionFormDialogue/QuestionForm.jsx

Summary

Maintainability
D
1 day
Test Coverage

Function QuestionForm has 256 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const QuestionForm = (props) => {
  const { disabled, initialValues, onSubmit, intl } = props;
  const {
    control,
    handleSubmit,

Function renderSpecificFields has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const renderSpecificFields = () => {
    const numberOfFilledOptions = options ? countFilledOptions(options) : 0;

    return (
      <>

Function renderOptionsToDelete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const renderOptionsToDelete = () => {
    const shouldRenderOptionsToDelete =
      deletedOptions && deletedOptions.length > 0;
    if (!shouldRenderOptionsToDelete) {
      return null;

There are no issues that match your filters.

Category
Status