OpenHPS/openhps-openvslam

View on GitHub
src/nodes/processing/VSLAMProcessingNode.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function _onBuild has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private _onBuild(): Promise<void> {
        return new Promise((resolve, reject) => {
            if (!this.model) {
                return reject(new Error(`Unable to start VSLAM processing without VSLAMService!`));
            }
Severity: Minor
Found in src/nodes/processing/VSLAMProcessingNode.ts - About 1 hr to fix

    Function process has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        process(data: In): Promise<Out> {
            return new Promise((resolve, reject) => {
                let uid = undefined;
                this.service.findSystemUIDByObject(data.source).then(systemUID => {
                    uid = systemUID;
    Severity: Minor
    Found in src/nodes/processing/VSLAMProcessingNode.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status