src/d2.js
Function init
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function init(initConfig, ApiClass = Api, logger = Logger.getLogger()) {
const api = ApiClass.getApi()
const config = Config.create(preInitConfig, initConfig)
Function getModelRequests
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getModelRequests(api, schemaNames) {
const modelRequests = []
const loadSchemaForName = (schemaName) =>
api.get(`schemas/${schemaName}`, { fields: fieldsForSchemas })