src/d2.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function init has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function init(initConfig, ApiClass = Api, logger = Logger.getLogger()) {
    const api = ApiClass.getApi()

    const config = Config.create(preInitConfig, initConfig)

Severity: Major
Found in src/d2.js - About 3 hrs to fix

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

    function getModelRequests(api, schemaNames) {
        const modelRequests = []
        const loadSchemaForName = (schemaName) =>
            api.get(`schemas/${schemaName}`, { fields: fieldsForSchemas })
    
    
    Severity: Minor
    Found in src/d2.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status