widgets/client/uploadHandler.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function uploadHandler has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const uploadHandler = (params: UploaderParams) => {
  const {
    // Blob object
    file,

Severity: Major
Found in widgets/client/uploadHandler.ts - About 2 hrs to fix

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

      uploadReader.onloadend = () => {
        // before upload
        if (beforeUpload) {
          beforeUpload();
        }
    Severity: Minor
    Found in widgets/client/uploadHandler.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status