FezVrasta/popper.js

View on GitHub
website/lib/components/Canvas.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function Canvas has 121 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function Canvas() {
  const canvasRef = useRef(null);
  const [width, setWidth] = useState(null);
  const [height, setHeight] = useState(null);

Severity: Major
Found in website/lib/components/Canvas.js - About 4 hrs to fix

Function position has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const position = useCallback(() => {
    if (width === null || height === null) return;

    computePosition(reference, floating, {
      platform: {
Severity: Minor
Found in website/lib/components/Canvas.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status