superdesk/superdesk-client-core

View on GitHub
scripts/apps/archive/controllers/file-upload-error-modal.tsx

Summary

Maintainability
B
5 hrs
Test Coverage

Function fileUploadErrorModal has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function fileUploadErrorModal(
    invalidFiles: Array<IFileError>,
) {
    return class FileUploadErrorModal extends React.PureComponent<IProps> {
        render() {
Severity: Major
Found in scripts/apps/archive/controllers/file-upload-error-modal.tsx - About 2 hrs to fix

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

            render() {
                if (invalidFiles.length > 0) {
                    return (
                        <Modal
                            visible
    Severity: Major
    Found in scripts/apps/archive/controllers/file-upload-error-modal.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status