src/bin/ProjectGenerator.ts
Function processClass
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");
Function buildProject
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 });