OpenHPS/openhps-core

View on GitHub
src/utils/unit/DerivedUnit.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function swap has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    swap(subunits: Unit[], options?: UnitOptions): DerivedUnit {
        if (Unit.UNITS.has(options.name)) {
            return Unit.UNITS.get(options.name) as this;
        }

Severity: Minor
Found in src/utils/unit/DerivedUnit.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status