FezVrasta/popper.js

View on GitHub
packages/react/src/hooks/useRole.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useRole has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useRole<RT extends ReferenceType = ReferenceType>(
  context: FloatingContext<RT>,
  props: UseRoleProps = {},
): ElementProps {
  const {open, floatingId} = context;
Severity: Major
Found in packages/react/src/hooks/useRole.ts - About 2 hrs to fix

There are no issues that match your filters.

Category
Status