FezVrasta/popper.js

View on GitHub
packages/react-native/src/createPlatform.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function getElementRects has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  getElementRects({
    reference,
    floating,
  }: {
    reference: View | VirtualElement;
Severity: Minor
Found in packages/react-native/src/createPlatform.ts - About 1 hr to fix

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

      const onMeasure = (offsetX = 0, offsetY = 0) => {
        floating.measure(
          (x: number, y: number, width: number, height: number) => {
            const floatingRect = {width, height, ...ORIGIN};
            const method = sameScrollView ? 'measure' : 'measureInWindow';
Severity: Minor
Found in packages/react-native/src/createPlatform.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status