AlexAegis/advent-of-code

View on GitHub
solutions/typescript/libs/lib/src/model/vector/bounding-box.class.ts

Summary

Maintainability
D
1 day
Test Coverage

BoundingBox has 61 functions (exceeds 20 allowed). Consider refactoring.
Open

export class BoundingBox {
    /**
     * from left to right
     */
    horizontal: Interval = Interval.EMPTY;
Severity: Major
Found in solutions/typescript/libs/lib/src/model/vector/bounding-box.class.ts - About 1 day to fix

    File bounding-box.class.ts has 424 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Direction, Interval, max } from '../../index.js';
    import { Vec2 } from './vec2.class.js';
    import type { Vec2Like } from './vec2.class.types.js';
    
    export type BoundingBoxCorner = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
    Severity: Minor
    Found in solutions/typescript/libs/lib/src/model/vector/bounding-box.class.ts - About 6 hrs to fix

      Avoid too many return statements within this function.
      Open

                  return undefined;
      Severity: Major
      Found in solutions/typescript/libs/lib/src/model/vector/bounding-box.class.ts - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status