Fix issue with undocumented checker not acknowledging synonyms

This commit is contained in:
Matthew Kaney
2025-01-28 16:10:54 -05:00
parent fddb66d74c
commit ecad4d0b11
2 changed files with 2 additions and 88 deletions
+1 -3
View File
@@ -49,9 +49,7 @@ function getExports(code) {
}
function isDocumented(name, docs) {
return docs.find(
(d) => d.name === name || d.tags?.find((t) => t.title === 'synonyms' && t.value.split(', ').includes(name)),
);
return docs.find((d) => d.name === name || d.synonyms?.includes(name));
}
async function getUndocumented(path, docs) {
+1 -85
View File
@@ -157,9 +157,6 @@
"/packages/core/pattern.mjs": [
"calculateTactus",
"setStringParser",
"polyrhythm",
"pr",
"pm",
"nothing",
"isPattern",
"reify",
@@ -167,7 +164,6 @@
"stackRight",
"stackCentre",
"stackBy",
"fastcat",
"bind",
"innerBind",
"outerBind",
@@ -197,23 +193,10 @@
"func",
"compressSpan",
"compressspan",
"fastgap",
"focusSpan",
"focusspan",
"density",
"sparsity",
"zoomArc",
"zoomarc",
"inv",
"juxby",
"echowith",
"stutWith",
"stutwith",
"iterback",
"slowchunk",
"slowChunk",
"chunkback",
"fastchunk",
"bypass",
"hsla",
"hsl",
@@ -222,7 +205,6 @@
"_fitslice",
"_match",
"_polymeterListSteps",
"timeCat",
"s_extend",
"s_expand",
"s_contract",
@@ -232,69 +214,20 @@
"/packages/core/controls.mjs": [
"createParam",
"registerControl",
"sound",
"src",
"att",
"fmi",
"fmrelease",
"fmvelocity",
"analyze",
"fft",
"dec",
"sus",
"rel",
"hold",
"bandf",
"bp",
"bandq",
"loopb",
"loope",
"ch",
"phaserrate",
"ph",
"phs",
"phc",
"phd",
"phasdp",
"cutoff",
"ctf",
"lp",
"lpe",
"hpe",
"bpe",
"lpa",
"hpa",
"bpa",
"lpd",
"hpd",
"bpd",
"lps",
"hps",
"bps",
"lpr",
"hpr",
"bpr",
"vibrato",
"v",
"vmod",
"hcutoff",
"hp",
"hresonance",
"resonance",
"delayfb",
"dfb",
"delayt",
"dt",
"lock",
"det",
"fadeTime",
"fadeOutTime",
"fadeInTime",
"patt",
"pdec",
"psustain",
"psus",
"prel",
"gate",
"gat",
"activeLabel",
@@ -322,20 +255,11 @@
"offset",
"octaves",
"mode",
"rlp",
"rdim",
"rfade",
"ir",
"size",
"sz",
"rsize",
"dist",
"compressorKnee",
"compressorRatio",
"compressorAttack",
"compressorRelease",
"waveloss",
"density",
"expression",
"sustainpedal",
"tremolodepth",
@@ -386,8 +310,6 @@
"uid",
"val",
"cps",
"legato",
"dur",
"zrand",
"curve",
"deltaSlide",
@@ -401,7 +323,6 @@
"zdelay",
"tremolo",
"zzfx",
"colour",
"createParams",
"ad",
"ds",
@@ -431,16 +352,11 @@
"_brandBy",
"_irand",
"__chooseWith",
"randcat",
"wrandcat",
"perlinWith",
"degradeByWith",
"_keyDown"
],
"/packages/core/pick.mjs": [
"pickSqueeze",
"pickmodSqueeze"
],
"/packages/core/pick.mjs": [],
"/packages/core/speak.mjs": [
"speak"
],