UNPKG

dependency-cruiser

Version:

Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

1 lines 215 kB
"use strict";export const validate=Q;export default Q;const ze={type:"object",required:["SHA1","changes"],properties:{cacheFormatVersion:{type:"number"},SHA1:{type:"string"},changes:{type:"array",items:{type:"object",required:["name","type"],properties:{name:{type:"string"},type:{type:"string",enum:["added","copied","deleted","modified","renamed","type changed","unmerged","pairing broken","unknown","unmodified","untracked","ignored"]},oldName:{type:"string"},checksum:{type:"string"},args:{type:"array",items:{type:"string"}},rulesFile:{type:"string"}}}}}};const Be={type:"object",required:["source","dependencies","valid"],additionalProperties:!1,properties:{source:{type:"string"},valid:{type:"boolean"},dependencies:{$ref:"#/definitions/DependenciesType"},dependents:{type:"array",items:{type:"string"}},followable:{type:"boolean"},matchesDoNotFollow:{type:"boolean"},matchesFocus:{type:"boolean"},matchesReaches:{type:"boolean"},matchesHighlight:{type:"boolean"},coreModule:{type:"boolean"},couldNotResolve:{type:"boolean"},dependencyTypes:{type:"array",items:{$ref:"#/definitions/DependencyTypeType"}},license:{type:"string"},orphan:{type:"boolean"},reachable:{type:"array",items:{$ref:"#/definitions/ReachableType"}},reaches:{type:"array",items:{$ref:"#/definitions/ReachesType"}},rules:{type:"array",items:{$ref:"#/definitions/RuleSummaryType"}},consolidated:{type:"boolean"},instability:{type:"number"},experimentalStats:{$ref:"#/definitions/ExperimentalStatsType"},checksum:{type:"string"}}},be={type:"string",enum:["aliased-subpath-import","aliased-tsconfig-base-url","aliased-tsconfig-paths","aliased-tsconfig","aliased-webpack","aliased-workspace","aliased","amd-define","amd-require","amd-exotic-require","core","deprecated","dynamic-import","exotic-require","export","import-equals","import","jsdoc","jsdoc-bracket-import","jsdoc-import-tag","local","localmodule","npm-bundled","npm-dev","npm-no-pkg","npm-optional","npm-peer","npm-unknown","npm","pre-compilation-only","process-get-builtin-module","require","triple-slash-amd-dependency","triple-slash-directive","triple-slash-file-reference","triple-slash-type-reference","type-import","type-only","undetermined","unknown"]};const Ae=Object.prototype.hasOwnProperty;const Ie={type:"object",required:["circular","coreModule","couldNotResolve","dependencyTypes","exoticallyRequired","dynamic","followable","module","moduleSystem","resolved","valid"],additionalProperties:!1,properties:{module:{type:"string"},protocol:{type:"string",enum:["data:","file:","node:","bun:"]},mimeType:{type:"string"},resolved:{type:"string"},coreModule:{type:"boolean"},dependencyTypes:{type:"array",items:{$ref:"#/definitions/DependencyTypeType"}},license:{type:"string"},followable:{type:"boolean"},dynamic:{type:"boolean"},exoticallyRequired:{type:"boolean"},exoticRequire:{type:"string"},matchesDoNotFollow:{type:"boolean"},couldNotResolve:{type:"boolean"},preCompilationOnly:{type:"boolean"},typeOnly:{type:"boolean"},circular:{type:"boolean"},cycle:{type:"array",items:{$ref:"#/definitions/MiniDependency"}},moduleSystem:{$ref:"#/definitions/ModuleSystemType"},valid:{type:"boolean"},rules:{type:"array",items:{$ref:"#/definitions/RuleSummaryType"}},instability:{type:"number"}}},Ue={type:"string",enum:["cjs","es6","amd","tsd"]};function K(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let a;if(s.name===void 0&&(a="name")||s.dependencyTypes===void 0&&(a="dependencyTypes"))return K.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:a},message:"must have required property '"+a+"'"}],!1;{const o=e;for(const c in s)if(!(c==="name"||c==="dependencyTypes")){return K.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;break}if(o===e){if(s.name!==void 0){const c=e;if(typeof s.name!="string")return K.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=c===e}else var i=!0;if(i)if(s.dependencyTypes!==void 0){let c=s.dependencyTypes;const _=e;if(e===_)if(Array.isArray(c)){var m=!0;const g=c.length;for(let d=0;d<g;d++){let p=c[d];const n=e;if(typeof p!="string")return K.errors=[{instancePath:t+"/dependencyTypes/"+d,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="aliased-subpath-import"||p==="aliased-tsconfig-base-url"||p==="aliased-tsconfig-paths"||p==="aliased-tsconfig"||p==="aliased-webpack"||p==="aliased-workspace"||p==="aliased"||p==="amd-define"||p==="amd-require"||p==="amd-exotic-require"||p==="core"||p==="deprecated"||p==="dynamic-import"||p==="exotic-require"||p==="export"||p==="import-equals"||p==="import"||p==="jsdoc"||p==="jsdoc-bracket-import"||p==="jsdoc-import-tag"||p==="local"||p==="localmodule"||p==="npm-bundled"||p==="npm-dev"||p==="npm-no-pkg"||p==="npm-optional"||p==="npm-peer"||p==="npm-unknown"||p==="npm"||p==="pre-compilation-only"||p==="process-get-builtin-module"||p==="require"||p==="triple-slash-amd-dependency"||p==="triple-slash-directive"||p==="triple-slash-file-reference"||p==="triple-slash-type-reference"||p==="type-import"||p==="type-only"||p==="undetermined"||p==="unknown"))return K.errors=[{instancePath:t+"/dependencyTypes/"+d,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:be.enum},message:"must be equal to one of the allowed values"}],!1;var m=n===e;if(!m)break}}else return K.errors=[{instancePath:t+"/dependencyTypes",schemaPath:"#/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=_===e}else var i=!0}}}else return K.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return K.errors=r,e===0}const xe={type:"string",enum:["error","warn","info","ignore"]};function W(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let m;if(s.name===void 0&&(m="name")||s.severity===void 0&&(m="severity"))return W.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:m},message:"must have required property '"+m+"'"}],!1;{const a=e;for(const o in s)if(!(o==="name"||o==="severity")){return W.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties"}],!1;break}if(a===e){if(s.name!==void 0){const o=e;if(typeof s.name!="string")return W.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=o===e}else var i=!0;if(i)if(s.severity!==void 0){let o=s.severity;const c=e;if(typeof o!="string")return W.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(o==="error"||o==="warn"||o==="info"||o==="ignore"))return W.errors=[{instancePath:t+"/severity",schemaPath:"#/definitions/SeverityType/enum",keyword:"enum",params:{allowedValues:xe.enum},message:"must be equal to one of the allowed values"}],!1;var i=c===e}else var i=!0}}}else return W.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return W.errors=r,e===0}function z(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let c;if(s.circular===void 0&&(c="circular")||s.coreModule===void 0&&(c="coreModule")||s.couldNotResolve===void 0&&(c="couldNotResolve")||s.dependencyTypes===void 0&&(c="dependencyTypes")||s.exoticallyRequired===void 0&&(c="exoticallyRequired")||s.dynamic===void 0&&(c="dynamic")||s.followable===void 0&&(c="followable")||s.module===void 0&&(c="module")||s.moduleSystem===void 0&&(c="moduleSystem")||s.resolved===void 0&&(c="resolved")||s.valid===void 0&&(c="valid"))return z.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:c},message:"must have required property '"+c+"'"}],!1;{const _=e;for(const y in s)if(!Ae.call(Ie.properties,y)){return z.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;break}if(_===e){if(s.module!==void 0){const y=e;if(typeof s.module!="string")return z.errors=[{instancePath:t+"/module",schemaPath:"#/properties/module/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=y===e}else var i=!0;if(i){if(s.protocol!==void 0){let y=s.protocol;const g=e;if(typeof y!="string")return z.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="data:"||y==="file:"||y==="node:"||y==="bun:"))return z.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/enum",keyword:"enum",params:{allowedValues:Ie.properties.protocol.enum},message:"must be equal to one of the allowed values"}],!1;var i=g===e}else var i=!0;if(i){if(s.mimeType!==void 0){const y=e;if(typeof s.mimeType!="string")return z.errors=[{instancePath:t+"/mimeType",schemaPath:"#/properties/mimeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=y===e}else var i=!0;if(i){if(s.resolved!==void 0){const y=e;if(typeof s.resolved!="string")return z.errors=[{instancePath:t+"/resolved",schemaPath:"#/properties/resolved/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=y===e}else var i=!0;if(i){if(s.coreModule!==void 0){const y=e;if(typeof s.coreModule!="boolean")return z.errors=[{instancePath:t+"/coreModule",schemaPath:"#/properties/coreModule/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.dependencyTypes!==void 0){let y=s.dependencyTypes;const g=e;if(e===g)if(Array.isArray(y)){var m=!0;const p=y.length;for(let n=0;n<p;n++){let u=y[n];const P=e;if(typeof u!="string")return z.errors=[{instancePath:t+"/dependencyTypes/"+n,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(u==="aliased-subpath-import"||u==="aliased-tsconfig-base-url"||u==="aliased-tsconfig-paths"||u==="aliased-tsconfig"||u==="aliased-webpack"||u==="aliased-workspace"||u==="aliased"||u==="amd-define"||u==="amd-require"||u==="amd-exotic-require"||u==="core"||u==="deprecated"||u==="dynamic-import"||u==="exotic-require"||u==="export"||u==="import-equals"||u==="import"||u==="jsdoc"||u==="jsdoc-bracket-import"||u==="jsdoc-import-tag"||u==="local"||u==="localmodule"||u==="npm-bundled"||u==="npm-dev"||u==="npm-no-pkg"||u==="npm-optional"||u==="npm-peer"||u==="npm-unknown"||u==="npm"||u==="pre-compilation-only"||u==="process-get-builtin-module"||u==="require"||u==="triple-slash-amd-dependency"||u==="triple-slash-directive"||u==="triple-slash-file-reference"||u==="triple-slash-type-reference"||u==="type-import"||u==="type-only"||u==="undetermined"||u==="unknown"))return z.errors=[{instancePath:t+"/dependencyTypes/"+n,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:be.enum},message:"must be equal to one of the allowed values"}],!1;var m=P===e;if(!m)break}}else return z.errors=[{instancePath:t+"/dependencyTypes",schemaPath:"#/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=g===e}else var i=!0;if(i){if(s.license!==void 0){const y=e;if(typeof s.license!="string")return z.errors=[{instancePath:t+"/license",schemaPath:"#/properties/license/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=y===e}else var i=!0;if(i){if(s.followable!==void 0){const y=e;if(typeof s.followable!="boolean")return z.errors=[{instancePath:t+"/followable",schemaPath:"#/properties/followable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.dynamic!==void 0){const y=e;if(typeof s.dynamic!="boolean")return z.errors=[{instancePath:t+"/dynamic",schemaPath:"#/properties/dynamic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.exoticallyRequired!==void 0){const y=e;if(typeof s.exoticallyRequired!="boolean")return z.errors=[{instancePath:t+"/exoticallyRequired",schemaPath:"#/properties/exoticallyRequired/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.exoticRequire!==void 0){const y=e;if(typeof s.exoticRequire!="string")return z.errors=[{instancePath:t+"/exoticRequire",schemaPath:"#/properties/exoticRequire/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=y===e}else var i=!0;if(i){if(s.matchesDoNotFollow!==void 0){const y=e;if(typeof s.matchesDoNotFollow!="boolean")return z.errors=[{instancePath:t+"/matchesDoNotFollow",schemaPath:"#/properties/matchesDoNotFollow/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.couldNotResolve!==void 0){const y=e;if(typeof s.couldNotResolve!="boolean")return z.errors=[{instancePath:t+"/couldNotResolve",schemaPath:"#/properties/couldNotResolve/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.preCompilationOnly!==void 0){const y=e;if(typeof s.preCompilationOnly!="boolean")return z.errors=[{instancePath:t+"/preCompilationOnly",schemaPath:"#/properties/preCompilationOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.typeOnly!==void 0){const y=e;if(typeof s.typeOnly!="boolean")return z.errors=[{instancePath:t+"/typeOnly",schemaPath:"#/properties/typeOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.circular!==void 0){const y=e;if(typeof s.circular!="boolean")return z.errors=[{instancePath:t+"/circular",schemaPath:"#/properties/circular/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.cycle!==void 0){let y=s.cycle;const g=e;if(e===g)if(Array.isArray(y)){var a=!0;const p=y.length;for(let n=0;n<p;n++){const u=e;K(y[n],{instancePath:t+"/cycle/"+n,parentData:y,parentDataProperty:n,rootData:O})||(r=r===null?K.errors:r.concat(K.errors),e=r.length);var a=u===e;if(!a)break}}else return z.errors=[{instancePath:t+"/cycle",schemaPath:"#/properties/cycle/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=g===e}else var i=!0;if(i){if(s.moduleSystem!==void 0){let y=s.moduleSystem;const g=e;if(typeof y!="string")return z.errors=[{instancePath:t+"/moduleSystem",schemaPath:"#/definitions/ModuleSystemType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="cjs"||y==="es6"||y==="amd"||y==="tsd"))return z.errors=[{instancePath:t+"/moduleSystem",schemaPath:"#/definitions/ModuleSystemType/enum",keyword:"enum",params:{allowedValues:Ue.enum},message:"must be equal to one of the allowed values"}],!1;var i=g===e}else var i=!0;if(i){if(s.valid!==void 0){const y=e;if(typeof s.valid!="boolean")return z.errors=[{instancePath:t+"/valid",schemaPath:"#/properties/valid/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=y===e}else var i=!0;if(i){if(s.rules!==void 0){let y=s.rules;const g=e;if(e===g)if(Array.isArray(y)){var o=!0;const p=y.length;for(let n=0;n<p;n++){const u=e;W(y[n],{instancePath:t+"/rules/"+n,parentData:y,parentDataProperty:n,rootData:O})||(r=r===null?W.errors:r.concat(W.errors),e=r.length);var o=u===e;if(!o)break}}else return z.errors=[{instancePath:t+"/rules",schemaPath:"#/properties/rules/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=g===e}else var i=!0;if(i)if(s.instability!==void 0){let y=s.instability;const g=e;if(!(typeof y=="number"&&isFinite(y)))return z.errors=[{instancePath:t+"/instability",schemaPath:"#/properties/instability/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=g===e}else var i=!0}}}}}}}}}}}}}}}}}}}}}}else return z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return z.errors=r,e===0}function qe(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(Array.isArray(s)){var i=!0;const m=s.length;for(let a=0;a<m;a++){const o=e;z(s[a],{instancePath:t+"/"+a,parentData:s,parentDataProperty:a,rootData:O})||(r=r===null?z.errors:r.concat(z.errors),e=r.length);var i=o===e;if(!i)break}}else return qe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;return qe.errors=r,e===0}function Y(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let c;if(s.modules===void 0&&(c="modules")||s.asDefinedInRule===void 0&&(c="asDefinedInRule"))return Y.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:c},message:"must have required property '"+c+"'"}],!1;{const _=e;for(const y in s)if(!(y==="modules"||y==="asDefinedInRule")){return Y.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;break}if(_===e){if(s.modules!==void 0){let y=s.modules;const g=e;if(e===g)if(Array.isArray(y)){var i=!0;const d=y.length;for(let p=0;p<d;p++){let n=y[p];const u=e;if(e===u)if(n&&typeof n=="object"&&!Array.isArray(n)){let f;if(n.source===void 0&&(f="source")||n.via===void 0&&(f="via"))return Y.errors=[{instancePath:t+"/modules/"+p,schemaPath:"#/properties/modules/items/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const v=e;for(const h in n)if(!(h==="source"||h==="via")){return Y.errors=[{instancePath:t+"/modules/"+p,schemaPath:"#/properties/modules/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;break}if(v===e){if(n.source!==void 0){const h=e;if(typeof n.source!="string")return Y.errors=[{instancePath:t+"/modules/"+p+"/source",schemaPath:"#/properties/modules/items/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=h===e}else var m=!0;if(m)if(n.via!==void 0){let h=n.via;const x=e;if(e===x)if(Array.isArray(h)){var a=!0;const I=h.length;for(let j=0;j<I;j++){const k=e;K(h[j],{instancePath:t+"/modules/"+p+"/via/"+j,parentData:h,parentDataProperty:j,rootData:O})||(r=r===null?K.errors:r.concat(K.errors),e=r.length);var a=k===e;if(!a)break}}else return Y.errors=[{instancePath:t+"/modules/"+p+"/via",schemaPath:"#/properties/modules/items/properties/via/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var m=x===e}else var m=!0}}}else return Y.errors=[{instancePath:t+"/modules/"+p,schemaPath:"#/properties/modules/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var i=u===e;if(!i)break}}else return Y.errors=[{instancePath:t+"/modules",schemaPath:"#/properties/modules/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=g===e}else var o=!0;if(o)if(s.asDefinedInRule!==void 0){const y=e;if(typeof s.asDefinedInRule!="string")return Y.errors=[{instancePath:t+"/asDefinedInRule",schemaPath:"#/properties/asDefinedInRule/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===e}else var o=!0}}}else return Y.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Y.errors=r,e===0}function H(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let d;if(s.source===void 0&&(d="source")||s.dependencies===void 0&&(d="dependencies")||s.valid===void 0&&(d="valid"))return H.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:d},message:"must have required property '"+d+"'"}],!1;{const p=e;for(const n in s)if(!Ae.call(Be.properties,n)){return H.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;break}if(p===e){if(s.source!==void 0){const n=e;if(typeof s.source!="string")return H.errors=[{instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=n===e}else var i=!0;if(i){if(s.valid!==void 0){const n=e;if(typeof s.valid!="boolean")return H.errors=[{instancePath:t+"/valid",schemaPath:"#/properties/valid/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.dependencies!==void 0){const n=e;qe(s.dependencies,{instancePath:t+"/dependencies",parentData:s,parentDataProperty:"dependencies",rootData:O})||(r=r===null?qe.errors:r.concat(qe.errors),e=r.length);var i=n===e}else var i=!0;if(i){if(s.dependents!==void 0){let n=s.dependents;const u=e;if(e===u)if(Array.isArray(n)){var m=!0;const f=n.length;for(let v=0;v<f;v++){const h=e;if(typeof n[v]!="string")return H.errors=[{instancePath:t+"/dependents/"+v,schemaPath:"#/properties/dependents/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=h===e;if(!m)break}}else return H.errors=[{instancePath:t+"/dependents",schemaPath:"#/properties/dependents/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=u===e}else var i=!0;if(i){if(s.followable!==void 0){const n=e;if(typeof s.followable!="boolean")return H.errors=[{instancePath:t+"/followable",schemaPath:"#/properties/followable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.matchesDoNotFollow!==void 0){const n=e;if(typeof s.matchesDoNotFollow!="boolean")return H.errors=[{instancePath:t+"/matchesDoNotFollow",schemaPath:"#/properties/matchesDoNotFollow/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.matchesFocus!==void 0){const n=e;if(typeof s.matchesFocus!="boolean")return H.errors=[{instancePath:t+"/matchesFocus",schemaPath:"#/properties/matchesFocus/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.matchesReaches!==void 0){const n=e;if(typeof s.matchesReaches!="boolean")return H.errors=[{instancePath:t+"/matchesReaches",schemaPath:"#/properties/matchesReaches/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.matchesHighlight!==void 0){const n=e;if(typeof s.matchesHighlight!="boolean")return H.errors=[{instancePath:t+"/matchesHighlight",schemaPath:"#/properties/matchesHighlight/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.coreModule!==void 0){const n=e;if(typeof s.coreModule!="boolean")return H.errors=[{instancePath:t+"/coreModule",schemaPath:"#/properties/coreModule/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.couldNotResolve!==void 0){const n=e;if(typeof s.couldNotResolve!="boolean")return H.errors=[{instancePath:t+"/couldNotResolve",schemaPath:"#/properties/couldNotResolve/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.dependencyTypes!==void 0){let n=s.dependencyTypes;const u=e;if(e===u)if(Array.isArray(n)){var a=!0;const f=n.length;for(let v=0;v<f;v++){let h=n[v];const x=e;if(typeof h!="string")return H.errors=[{instancePath:t+"/dependencyTypes/"+v,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(h==="aliased-subpath-import"||h==="aliased-tsconfig-base-url"||h==="aliased-tsconfig-paths"||h==="aliased-tsconfig"||h==="aliased-webpack"||h==="aliased-workspace"||h==="aliased"||h==="amd-define"||h==="amd-require"||h==="amd-exotic-require"||h==="core"||h==="deprecated"||h==="dynamic-import"||h==="exotic-require"||h==="export"||h==="import-equals"||h==="import"||h==="jsdoc"||h==="jsdoc-bracket-import"||h==="jsdoc-import-tag"||h==="local"||h==="localmodule"||h==="npm-bundled"||h==="npm-dev"||h==="npm-no-pkg"||h==="npm-optional"||h==="npm-peer"||h==="npm-unknown"||h==="npm"||h==="pre-compilation-only"||h==="process-get-builtin-module"||h==="require"||h==="triple-slash-amd-dependency"||h==="triple-slash-directive"||h==="triple-slash-file-reference"||h==="triple-slash-type-reference"||h==="type-import"||h==="type-only"||h==="undetermined"||h==="unknown"))return H.errors=[{instancePath:t+"/dependencyTypes/"+v,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:be.enum},message:"must be equal to one of the allowed values"}],!1;var a=x===e;if(!a)break}}else return H.errors=[{instancePath:t+"/dependencyTypes",schemaPath:"#/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=u===e}else var i=!0;if(i){if(s.license!==void 0){const n=e;if(typeof s.license!="string")return H.errors=[{instancePath:t+"/license",schemaPath:"#/properties/license/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=n===e}else var i=!0;if(i){if(s.orphan!==void 0){const n=e;if(typeof s.orphan!="boolean")return H.errors=[{instancePath:t+"/orphan",schemaPath:"#/properties/orphan/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.reachable!==void 0){let n=s.reachable;const u=e;if(e===u)if(Array.isArray(n)){var o=!0;const f=n.length;for(let v=0;v<f;v++){let h=n[v];const x=e;if(e===e)if(h&&typeof h=="object"&&!Array.isArray(h)){let j;if(h.value===void 0&&(j="value")||h.asDefinedInRule===void 0&&(j="asDefinedInRule")||h.matchedFrom===void 0&&(j="matchedFrom"))return H.errors=[{instancePath:t+"/reachable/"+v,schemaPath:"#/definitions/ReachableType/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const k=e;for(const D in h)if(!(D==="value"||D==="asDefinedInRule"||D==="matchedFrom")){return H.errors=[{instancePath:t+"/reachable/"+v,schemaPath:"#/definitions/ReachableType/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;break}if(k===e){if(h.value!==void 0){const D=e;if(typeof h.value!="boolean")return H.errors=[{instancePath:t+"/reachable/"+v+"/value",schemaPath:"#/definitions/ReachableType/properties/value/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var c=D===e}else var c=!0;if(c){if(h.asDefinedInRule!==void 0){const D=e;if(typeof h.asDefinedInRule!="string")return H.errors=[{instancePath:t+"/reachable/"+v+"/asDefinedInRule",schemaPath:"#/definitions/ReachableType/properties/asDefinedInRule/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=D===e}else var c=!0;if(c)if(h.matchedFrom!==void 0){const D=e;if(typeof h.matchedFrom!="string")return H.errors=[{instancePath:t+"/reachable/"+v+"/matchedFrom",schemaPath:"#/definitions/ReachableType/properties/matchedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=D===e}else var c=!0}}}}else return H.errors=[{instancePath:t+"/reachable/"+v,schemaPath:"#/definitions/ReachableType/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=x===e;if(!o)break}}else return H.errors=[{instancePath:t+"/reachable",schemaPath:"#/properties/reachable/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=u===e}else var i=!0;if(i){if(s.reaches!==void 0){let n=s.reaches;const u=e;if(e===u)if(Array.isArray(n)){var _=!0;const f=n.length;for(let v=0;v<f;v++){const h=e;Y(n[v],{instancePath:t+"/reaches/"+v,parentData:n,parentDataProperty:v,rootData:O})||(r=r===null?Y.errors:r.concat(Y.errors),e=r.length);var _=h===e;if(!_)break}}else return H.errors=[{instancePath:t+"/reaches",schemaPath:"#/properties/reaches/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=u===e}else var i=!0;if(i){if(s.rules!==void 0){let n=s.rules;const u=e;if(e===u)if(Array.isArray(n)){var y=!0;const f=n.length;for(let v=0;v<f;v++){const h=e;W(n[v],{instancePath:t+"/rules/"+v,parentData:n,parentDataProperty:v,rootData:O})||(r=r===null?W.errors:r.concat(W.errors),e=r.length);var y=h===e;if(!y)break}}else return H.errors=[{instancePath:t+"/rules",schemaPath:"#/properties/rules/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=u===e}else var i=!0;if(i){if(s.consolidated!==void 0){const n=e;if(typeof s.consolidated!="boolean")return H.errors=[{instancePath:t+"/consolidated",schemaPath:"#/properties/consolidated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var i=n===e}else var i=!0;if(i){if(s.instability!==void 0){let n=s.instability;const u=e;if(!(typeof n=="number"&&isFinite(n)))return H.errors=[{instancePath:t+"/instability",schemaPath:"#/properties/instability/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=u===e}else var i=!0;if(i){if(s.experimentalStats!==void 0){let n=s.experimentalStats;const u=e;if(e===e)if(n&&typeof n=="object"&&!Array.isArray(n)){let v;if(n.size===void 0&&(v="size")||n.topLevelStatementCount===void 0&&(v="topLevelStatementCount"))return H.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const h=e;for(const x in n)if(!(x==="topLevelStatementCount"||x==="size")){return H.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;break}if(h===e){if(n.topLevelStatementCount!==void 0){let x=n.topLevelStatementCount;const N=e;if(!(typeof x=="number"&&isFinite(x)))return H.errors=[{instancePath:t+"/experimentalStats/topLevelStatementCount",schemaPath:"#/definitions/ExperimentalStatsType/properties/topLevelStatementCount/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=N===e}else var g=!0;if(g)if(n.size!==void 0){let x=n.size;const N=e;if(!(typeof x=="number"&&isFinite(x)))return H.errors=[{instancePath:t+"/experimentalStats/size",schemaPath:"#/definitions/ExperimentalStatsType/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=N===e}else var g=!0}}}else return H.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var i=u===e}else var i=!0;if(i)if(s.checksum!==void 0){const n=e;if(typeof s.checksum!="string")return H.errors=[{instancePath:t+"/checksum",schemaPath:"#/properties/checksum/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=n===e}else var i=!0}}}}}}}}}}}}}}}}}}}}}}else return H.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return H.errors=r,e===0}function Ne(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(Array.isArray(s)){var i=!0;const m=s.length;for(let a=0;a<m;a++){const o=e;H(s[a],{instancePath:t+"/"+a,parentData:s,parentDataProperty:a,rootData:O})||(r=r===null?H.errors:r.concat(H.errors),e=r.length);var i=o===e;if(!i)break}}else return Ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;return Ne.errors=r,e===0}function B(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let g;if(s.name===void 0&&(g="name")||s.moduleCount===void 0&&(g="moduleCount"))return B.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const d=e;for(const p in s)if(!(p==="name"||p==="dependents"||p==="dependencies"||p==="moduleCount"||p==="afferentCouplings"||p==="efferentCouplings"||p==="instability"||p==="experimentalStats")){return B.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;break}if(d===e){if(s.name!==void 0){const p=e;if(typeof s.name!="string")return B.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=p===e}else var i=!0;if(i){if(s.dependents!==void 0){let p=s.dependents;const n=e;if(e===n)if(Array.isArray(p)){var m=!0;const P=p.length;for(let f=0;f<P;f++){let v=p[f];const h=e;if(e===h)if(v&&typeof v=="object"&&!Array.isArray(v)){let N;if(v.name===void 0&&(N="name"))return B.errors=[{instancePath:t+"/dependents/"+f,schemaPath:"#/properties/dependents/items/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const I=e;for(const j in v)if(j!=="name"){return B.errors=[{instancePath:t+"/dependents/"+f,schemaPath:"#/properties/dependents/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"}],!1;break}if(I===e&&v.name!==void 0&&typeof v.name!="string")return B.errors=[{instancePath:t+"/dependents/"+f+"/name",schemaPath:"#/properties/dependents/items/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}}else return B.errors=[{instancePath:t+"/dependents/"+f,schemaPath:"#/properties/dependents/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=h===e;if(!m)break}}else return B.errors=[{instancePath:t+"/dependents",schemaPath:"#/properties/dependents/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=n===e}else var i=!0;if(i){if(s.dependencies!==void 0){let p=s.dependencies;const n=e;if(e===n)if(Array.isArray(p)){var a=!0;const P=p.length;for(let f=0;f<P;f++){let v=p[f];const h=e;if(e===h)if(v&&typeof v=="object"&&!Array.isArray(v)){let N;if(v.name===void 0&&(N="name")||v.valid===void 0&&(N="valid")||v.circular===void 0&&(N="circular"))return B.errors=[{instancePath:t+"/dependencies/"+f,schemaPath:"#/properties/dependencies/items/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const I=e;for(const j in v)if(!(j==="name"||j==="instability"||j==="valid"||j==="circular"||j==="cycle"||j==="rules")){return B.errors=[{instancePath:t+"/dependencies/"+f,schemaPath:"#/properties/dependencies/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"}],!1;break}if(I===e){if(v.name!==void 0){const j=e;if(typeof v.name!="string")return B.errors=[{instancePath:t+"/dependencies/"+f+"/name",schemaPath:"#/properties/dependencies/items/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=j===e}else var o=!0;if(o){if(v.instability!==void 0){let j=v.instability;const k=e;if(!(typeof j=="number"&&isFinite(j)))return B.errors=[{instancePath:t+"/dependencies/"+f+"/instability",schemaPath:"#/properties/dependencies/items/properties/instability/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=k===e}else var o=!0;if(o){if(v.valid!==void 0){const j=e;if(typeof v.valid!="boolean")return B.errors=[{instancePath:t+"/dependencies/"+f+"/valid",schemaPath:"#/properties/dependencies/items/properties/valid/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=j===e}else var o=!0;if(o){if(v.circular!==void 0){const j=e;if(typeof v.circular!="boolean")return B.errors=[{instancePath:t+"/dependencies/"+f+"/circular",schemaPath:"#/properties/dependencies/items/properties/circular/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=j===e}else var o=!0;if(o){if(v.cycle!==void 0){let j=v.cycle;const k=e;if(e===k)if(Array.isArray(j)){var c=!0;const $=j.length;for(let l=0;l<$;l++){const A=e;K(j[l],{instancePath:t+"/dependencies/"+f+"/cycle/"+l,parentData:j,parentDataProperty:l,rootData:O})||(r=r===null?K.errors:r.concat(K.errors),e=r.length);var c=A===e;if(!c)break}}else return B.errors=[{instancePath:t+"/dependencies/"+f+"/cycle",schemaPath:"#/properties/dependencies/items/properties/cycle/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=k===e}else var o=!0;if(o)if(v.rules!==void 0){let j=v.rules;const k=e;if(e===k)if(Array.isArray(j)){var _=!0;const $=j.length;for(let l=0;l<$;l++){const A=e;W(j[l],{instancePath:t+"/dependencies/"+f+"/rules/"+l,parentData:j,parentDataProperty:l,rootData:O})||(r=r===null?W.errors:r.concat(W.errors),e=r.length);var _=A===e;if(!_)break}}else return B.errors=[{instancePath:t+"/dependencies/"+f+"/rules",schemaPath:"#/properties/dependencies/items/properties/rules/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=k===e}else var o=!0}}}}}}}else return B.errors=[{instancePath:t+"/dependencies/"+f,schemaPath:"#/properties/dependencies/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=h===e;if(!a)break}}else return B.errors=[{instancePath:t+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=n===e}else var i=!0;if(i){if(s.moduleCount!==void 0){let p=s.moduleCount;const n=e;if(!(typeof p=="number"&&isFinite(p)))return B.errors=[{instancePath:t+"/moduleCount",schemaPath:"#/properties/moduleCount/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=n===e}else var i=!0;if(i){if(s.afferentCouplings!==void 0){let p=s.afferentCouplings;const n=e;if(!(typeof p=="number"&&isFinite(p)))return B.errors=[{instancePath:t+"/afferentCouplings",schemaPath:"#/properties/afferentCouplings/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=n===e}else var i=!0;if(i){if(s.efferentCouplings!==void 0){let p=s.efferentCouplings;const n=e;if(!(typeof p=="number"&&isFinite(p)))return B.errors=[{instancePath:t+"/efferentCouplings",schemaPath:"#/properties/efferentCouplings/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=n===e}else var i=!0;if(i){if(s.instability!==void 0){let p=s.instability;const n=e;if(!(typeof p=="number"&&isFinite(p)))return B.errors=[{instancePath:t+"/instability",schemaPath:"#/properties/instability/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var i=n===e}else var i=!0;if(i)if(s.experimentalStats!==void 0){let p=s.experimentalStats;const n=e;if(e===e)if(p&&typeof p=="object"&&!Array.isArray(p)){let f;if(p.size===void 0&&(f="size")||p.topLevelStatementCount===void 0&&(f="topLevelStatementCount"))return B.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const v=e;for(const h in p)if(!(h==="topLevelStatementCount"||h==="size")){return B.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;break}if(v===e){if(p.topLevelStatementCount!==void 0){let h=p.topLevelStatementCount;const x=e;if(!(typeof h=="number"&&isFinite(h)))return B.errors=[{instancePath:t+"/experimentalStats/topLevelStatementCount",schemaPath:"#/definitions/ExperimentalStatsType/properties/topLevelStatementCount/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=x===e}else var y=!0;if(y)if(p.size!==void 0){let h=p.size;const x=e;if(!(typeof h=="number"&&isFinite(h)))return B.errors=[{instancePath:t+"/experimentalStats/size",schemaPath:"#/definitions/ExperimentalStatsType/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=x===e}else var y=!0}}}else return B.errors=[{instancePath:t+"/experimentalStats",schemaPath:"#/definitions/ExperimentalStatsType/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var i=n===e}else var i=!0}}}}}}}}}else return B.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return B.errors=r,e===0}function $e(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(Array.isArray(s)){var i=!0;const m=s.length;for(let a=0;a<m;a++){const o=e;B(s[a],{instancePath:t+"/"+a,parentData:s,parentDataProperty:a,rootData:O})||(r=r===null?B.errors:r.concat(B.errors),e=r.length);var i=o===e;if(!i)break}}else return $e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;return $e.errors=r,e===0}const Je={type:"object",required:["violations","error","warn","info","totalCruised","optionsUsed"],additionalProperties:!1,properties:{violations:{$ref:"#/definitions/ViolationsType"},error:{type:"number"},warn:{type:"number"},info:{type:"number"},ignore:{type:"number"},totalCruised:{type:"number"},totalDependenciesCruised:{type:"number"},environment:{type:"object",required:["version","nodeVersionSupported","nodeVersionFound","osVersionFound","transpilersFound","extensionsFound"],additionalProperties:!1,properties:{version:{type:"string"},nodeVersionSupported:{type:"string"},nodeVersionFound:{type:"string"},osVersionFound:{type:"string"},transpilersFound:{type:"array",items:{type:"object",required:["name","version","available","currentVersion"],additionalProperties:!1,properties:{name:{type:"string"},version:{type:"string"},available:{type:"boolean"},currentVersion:{type:"string"}}}},extensionsFound:{type:"array",items:{type:"object",required:["extension","available"],additionalProperties:!1,properties:{extension:{type:"string"},available:{type:"boolean"}}}},issues:{type:"array",items:{type:"object",required:["severity","name","description"],additionalProperties:!1,properties:{severity:{$ref:"#/definitions/SeverityType"},name:{type:"string"},description:{type:"string"}}}}}},ruleSetUsed:{$ref:"#/definitions/RuleSetType"},optionsUsed:{$ref:"#/definitions/OptionsUsedType"}}};const Ge={type:"object",required:["from","to","rule"],additionalProperties:!1,properties:{from:{type:"string"},to:{type:"string"},unresolvedTo:{type:"string"},dependencyTypes:{type:"array",items:{$ref:"#/definitions/DependencyTypeType"}},type:{$ref:"#/definitions/ViolationTypeType"},rule:{$ref:"#/definitions/RuleSummaryType"},cycle:{type:"array",items:{$ref:"#/definitions/MiniDependency"}},via:{type:"array",items:{$ref:"#/definitions/MiniDependency"}},metrics:{type:"object",required:["from","to"],additionalProperties:!1,properties:{from:{type:"object",required:["instability"],additionalProperties:!1,properties:{instability:{type:"number"}}},to:{type:"object",required:["instability"],additionalProperties:!1,properties:{instability:{type:"number"}}}}},comment:{type:"string"}}},Ke={type:"string",enum:["dependency","module","reachability","cycle","instability","folder"]};function G(s,{instancePath:t="",parentData:C,parentDataProperty:V,rootData:O=s}={}){let r=null,e=0;if(e===0)if(s&&typeof s=="object"&&!Array.isArray(s)){let _;if(s.from===void 0&&(_="from")||s.to===void 0&&(_="to")||s.rule===void 0&&(_="rule"))return G.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"}],!1;{const y=e;for(const g in s)if(!Ae.call(Ge.properties,g)){return G.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"}],!1;break}if(y===e){if(s.from!==void 0){const g=e;if(typeof s.from!="string")return G.errors=[{instancePath:t+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=g===e}else var i=!0;if(i){if(s.to!==void 0){const g=e;if(typeof s.to!="string")return G.errors=[{instancePath:t+"/to",schemaPath:"#/properties/to/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=g===e}else var i=!0;if(i){if(s.unresolvedTo!==void 0){const g=e;if(typeof s.unresolvedTo!="string")return G.errors=[{instancePath:t+"/unresolvedTo",schemaPath:"#/properties/unresolvedTo/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var i=g===e}else var i=!0;if(i){if(s.dependencyTypes!==void 0){let g=s.dependencyTypes;const d=e;if(e===d)if(Array.isArray(g)){var m=!0;const n=g.length;for(let u=0;u<n;u++){let P=g[u];const f=e;if(typeof P!="string")return G.errors=[{instancePath:t+"/dependencyTypes/"+u,schemaPath:"#/definitions/DependencyTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(P==="aliased-subpath-import"||P==="aliased-tsconfig-base-url"||P==="aliased-tsconfig-paths"||P==="aliased-tsconfig"||P==="aliased-webpack"||P==="aliased-workspace"||P==="aliased"||P==="amd-define"||P==="amd-require"||P==="amd-exotic-require"||P==="core"||P==="deprecated"||P==="dynamic-import"||P==="exotic-require"||P==="export"||P==="import-equals"||P==="import"||P==="jsdoc"||P==="jsdoc-bracket-import"||P==="jsdoc-import-tag"||P==="local"||P==="localmodule"||P==="npm-bundled"||P==="npm-dev"||P==="npm-no-pkg"||P==="npm-optional"||P==="npm-peer"||P==="npm-unknown"||P==="npm"||P==="pre-compilation-only"||P==="process-get-builtin-module"||P==="require"||P==="triple-slash-amd-dependency"||P==="triple-slash-directive"||P==="triple-slash-file-reference"||P==="triple-slash-type-reference"||P==="type-import"||P==="type-only"||P==="undetermined"||P==="unknown"))return G.errors=[{instancePath:t+"/dependencyTypes/"+u,schemaPath:"#/definitions/DependencyTypeType/enum",keyword:"enum",params:{allowedValues:be.enum},message:"must be equal to one of the allowed values"}],!1;var m=f===e;if(!m)break}}else return G.errors=[{instancePath:t+"/dependencyTypes",schemaPath:"#/properties/dependencyTypes/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=d===e}else var i=!0;if(i){if(s.type!==void 0){let g=s.type;const d=e;if(typeof g!="string")return G.errors=[{instancePath:t+"/type",schemaPath:"#/definitions/ViolationTypeType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(g==="dependency"||g==="module"||g==="reachability"||g==="cycle"||g==="instability"||g==="folder"))return G.errors=[{instancePath:t+"/type",schemaPath:"#/definitions/ViolationTypeType/enum",keyword:"enum",params:{allowedValues:Ke.enum},message:"must be equal to one of the allowed values"}],!1;var i=d===e}else var i=!0;if(i){if(s.rule!==void 0){const g=e;W(s.rule,{instancePath:t+"/rule",parentData:s,parentDataProperty:"rule",rootData:O})||(r=r===null?W.errors:r.concat(W.errors),e=r.length);var i=g===e}else var i=!0;if(i){if(s.cycle!==void 0){let g=s.cycle;const d=e;if(e===d)if(Array.isArray(g)){var a=!0;const n=g.length;for(let u=0;u<n;u++){const P=e;K(g[u],{instancePath:t+"/cycle/"+u,parentData:g,parentDataProperty:u,rootData:O})||(r=r===null?K.errors:r.concat(K.errors),e=r.length);var a=P===e;if(!a)break}}else return G.errors=[{instancePath:t+"/cycle",schemaPath:"#/properties/cycle/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=d===e}else var i=!0;if(i){if(s.via!==void 0){let g=s.via;const d=e;if(e===d)if(Array.isArray(g)){var o=!0;const n=g.length;for(let u=0;u<n;u++){const P=e;K(g[u],{instancePath:t+"/via/"+u,parentData:g,parentDataProperty:u,rootData:O})||(r=r===null?K.errors:r.concat(K.errors),e=r.length);var o=P===e;if(!o)break}}else return G.errors=[{instancePath:t+"/via",schemaPath:"#/properties/via/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var i=d===e}else var i=!0;if(i){if(s.metrics!==void 0){let g=s.metrics;const d=e;if(e===d)if(g&&typeof g=="object"&&!Array.isArray(g)){let n;if(g.from===void 0&&(n="from")||g.to===void 0&&(n="to"))return G.errors=[{instancePath:t+"/metrics",schemaPath:"#/properties/metrics/required",keyword:"required",params:{missingProperty:n},message:"must have required property '"+n+"'"}],!1;{const u=e;for(const P in g)if(!(P==="from"||P==="to")){return G.errors=[{instancePath:t+"/metrics",schemaPath:"#/properties/metrics/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;break}if(u===e){if(g.from!==void 0){let P=g.from;const f=e;if(e===f)if(P&&typeof P=="object"&&!Array.isArray(P)){let v;if(P.instability===void 0&&(v="instability"))return G.errors=[{instancePath:t+"/metrics/from",schemaPath:"#/properties/metrics/properties/from/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const h=e;for(const x in P)if(x!=="instability"){return G.errors=[{instancePath:t+"/metrics/from",schemaPath:"#/properties/metrics/proper