ICTU/quality-time

View on GitHub
components/frontend/src/hooks/boundingbox.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export const useBoundingBox = () => {
    const ref = useRef()
    const [boundingBox, setBoundingBox] = useState({})
    // As we don't know how long animations after a resize or full screen event take,
    // we schedule several timeouts to recalculate the bounding box:
Severity: Minor
Found in components/frontend/src/hooks/boundingbox.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status