superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/options-modal.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

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

export function showOptionsModal(title: string, message: string, options: Array<IOption>, dataTestId?: string): void {
    class OptionsModal extends React.PureComponent<IProps, IState> {
        constructor(props: IProps) {
            super(props);

Severity: Major
Found in scripts/core/ui/components/options-modal.tsx - About 2 hrs to fix

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

            render() {
                return (
                    <Modal
                        visible
                        zIndex={1050}
    Severity: Minor
    Found in scripts/core/ui/components/options-modal.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status