ElectronicBabylonianLiterature/ebl-frontend

View on GitHub
src/fragmentarium/ui/image-annotation/annotation-tool/Annotation.js

Summary

Maintainability
C
1 day
Test Coverage
C
74%

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

    render() {
      const { props } = this
      const {
        isMouseHovering,

Severity: Major
Found in src/fragmentarium/ui/image-annotation/annotation-tool/Annotation.js - About 5 hrs to fix

    File Annotation.js has 350 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    //https://github.com/Secretmapper/react-image-annotation
    /*
    The MIT License (MIT)
    Copyright (c) 2018-present, Arian Allenson Valdez.
    
    
    Severity: Minor
    Found in src/fragmentarium/ui/image-annotation/annotation-tool/Annotation.js - About 4 hrs to fix

      `` has 23 functions (exceeds 20 allowed). Consider refactoring.
      Open

        class Annotation extends Component {
          static propTypes = {
            innerRef: T.func,
            onMouseUp: T.func,
            onMouseDown: T.func,
      Severity: Minor
      Found in src/fragmentarium/ui/image-annotation/annotation-tool/Annotation.js - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status