polkadot-js/apps

View on GitHub
packages/react-components/src/Popup/utils.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getPosition has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

export function getPosition (triggerPosition: ElementPosition, positionX: HorizontalPosition, positionY: VerticalPosition, windowPosition: ElementPosition, scrollY: number, windowSize: WindowSize): Coords {
Severity: Minor
Found in packages/react-components/src/Popup/utils.ts - About 45 mins to fix

    Function fitsInView has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function fitsInView (positionY: VerticalPosition, trigger: ElementPosition, popupWindowHeight: number, windowSize: WindowSize, scrollY: number): boolean {
    Severity: Minor
    Found in packages/react-components/src/Popup/utils.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status