OpenHPS/openhps-core

View on GitHub
src/service/LocationBasedService.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getCurrentPosition has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    getCurrentPosition(object: T | string, options: GeoOptions = {}): Promise<P> {
        return new Promise((resolve, reject) => {
            const maximumAge = options.maximumAge || Infinity;
            options.timeout = options.timeout || 10000;
            const uid = object instanceof DataObject ? object.uid : object;
Severity: Minor
Found in src/service/LocationBasedService.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status