OpenHPS/openhps-rdf

View on GitHub
src/bin/ProjectGenerator.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function processClass has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static processClass(nodeType: any): Promise<[string, string]> {
        return new Promise((resolve, reject) => {
            const url = `https://openhps.org/terms/procedure/${nodeType.name}`;
            const builder = RDFBuilder.namedNode(url as IriString)
                .add(rdfs.label, nodeType.name, "en");
Severity: Minor
Found in src/bin/ProjectGenerator.ts - About 1 hr to fix

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

        static buildProject(directory: string, options: ProjectBuildOptions = {}): Promise<number> {
            return new Promise((resolve, reject) => {
                // Prepare directories
                if (fs.existsSync(directory)) {
                    fs.rmSync(directory, { recursive: true });
    Severity: Minor
    Found in src/bin/ProjectGenerator.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status