Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/submission/components/FileInput.jsx

Summary

Maintainability
B
5 hrs
Test Coverage

Function render has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const {
      disabled,
      fieldState: { error },
      field: { value },

Function FileInputField has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const FileInputField = (props) => {
  const {
    disabled,
    isMultipleAttachmentsAllowed,
    maxAttachmentsAllowed,

Function displayFileNames has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  displayFileNames(files) {
    const { disabled } = this.props;
    const { dropzoneActive } = this.state;
    if (dropzoneActive) {
      return <FileUpload style={{ width: 60, height: 60 }} />;

There are no issues that match your filters.

Category
Status