autowp/autowp-frontend

View on GitHub
src/app/gallery/area.component.ts

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Function placement has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

protected placement(): string {
const winHeight = window.innerHeight;
const nodeOffset = this.styles?.['top.px'] ? this.styles['top.px'] : 0;
const nodeHeight = this.styles?.['height.px'] ? this.styles['height.px'] : 0;
const winCenter = winHeight == undefined ? 0 : winHeight / 2;
Severity: Minor
Found in src/app/gallery/area.component.ts - About 25 mins to fix

There are no issues that match your filters.

Category
Status