@cplieger/deadset-ts 8.0.0-dev.18 → 8.0.0-dev.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/analysis.js +4 -1
- package/dist/src/commands/held.js +499 -0
- package/dist/src/commands/read.js +16 -10
- package/dist/src/commands/shell.js +109 -15
- package/dist/src/commands/tools.js +1540 -149
- package/dist/src/conformance-record.js +1 -1
- package/dist/src/contract/contract.generated.js +7 -0
- package/dist/src/entries/conventions.js +7 -6
- package/dist/src/entries/test-runners.js +6 -40
- package/dist/src/entries/workflow-steps.js +202 -28
- package/dist/src/findings/non-code-artifacts.js +11 -5
- package/dist/src/roots/manifest.js +47 -4
- package/dist/src/roots/root-set.js +14 -16
- package/dist/src/text/named-files.js +257 -34
- package/dist/src/verbs/analyze.js +16 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/analysis.ts +13 -1
- package/src/commands/held.ts +632 -0
- package/src/commands/read.ts +26 -12
- package/src/commands/shell.ts +117 -15
- package/src/commands/tools.ts +1972 -202
- package/src/conformance-record.ts +1 -1
- package/src/contract/contract.generated.ts +7 -0
- package/src/dependencies.ts +1 -1
- package/src/entries/conventions.ts +8 -12
- package/src/entries/test-runners.ts +12 -45
- package/src/entries/workflow-steps.ts +227 -38
- package/src/file-facts.ts +5 -0
- package/src/findings/non-code-artifacts.ts +16 -5
- package/src/roots/manifest.ts +53 -8
- package/src/roots/root-set.ts +18 -16
- package/src/text/named-files.ts +333 -36
- package/src/verbs/analyze.ts +16 -1
|
@@ -1,59 +1,282 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* contains, so no part of it is split, unquoted or skipped first.
|
|
5
|
-
*/
|
|
1
|
+
/** Layer 3 of the command reader: the files its words name, and the package names a command's text names. */
|
|
2
|
+
import { PART } from "../commands/shell.js";
|
|
3
|
+
import { APPENDED_EXTENSIONS, extensionOf } from "../extensions.js";
|
|
6
4
|
import { dirnamePath, normalizePath, relativePath } from "../paths.js";
|
|
7
|
-
/** The
|
|
8
|
-
const
|
|
5
|
+
/** The extensions a name of a file drops: a source's, an emitted file's, and a declaration's (roots.13). */
|
|
6
|
+
const NAMED_EXTENSIONS = [...APPENDED_EXTENSIONS, ".d.ts", ".d.mts", ".d.cts"];
|
|
7
|
+
/** A character a package's or a command's name may hold, so one beside a name makes it part of a longer one. */
|
|
8
|
+
const NAME_CHARACTER = /[\w.@-]/u;
|
|
9
|
+
const SEPARATOR = /[/\\]/u;
|
|
9
10
|
/**
|
|
10
|
-
* The names whose
|
|
11
|
-
* extension, or
|
|
12
|
-
* last
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* The names whose appearance as a path in a text holds one path below `dir`: its last segment
|
|
12
|
+
* without the extension, or whole where nothing else is left or it has none, and for an
|
|
13
|
+
* `index` file its directory's last segment, and `.` too where that is `dir`. Every spelling
|
|
14
|
+
* of the path that writes it as a path holds one of them (roots.13). None is empty, because
|
|
15
|
+
* an empty name is in every text.
|
|
15
16
|
*/
|
|
16
|
-
function
|
|
17
|
+
function namesOf(path, dir) {
|
|
17
18
|
const last = path.slice(path.lastIndexOf("/") + 1);
|
|
18
|
-
const bare = last.
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
return [
|
|
19
|
+
const bare = last.slice(0, last.length - (extensionOf(last, NAMED_EXTENSIONS)?.length ?? 0));
|
|
20
|
+
const own = bare === "" || bare === last ? { text: last, kind: "segment" } : { text: bare, kind: "stem" };
|
|
21
|
+
if (own.text !== "index") {
|
|
22
|
+
return [own];
|
|
22
23
|
}
|
|
23
24
|
const parent = dirnamePath(path);
|
|
25
|
+
const directory = parent.slice(parent.lastIndexOf("/") + 1);
|
|
24
26
|
return [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...(parent === normalizePath(dir) ? ["."] : []),
|
|
28
|
-
]
|
|
27
|
+
own,
|
|
28
|
+
...(directory === "" ? [] : [{ text: directory, kind: "directory" }]),
|
|
29
|
+
...(parent === normalizePath(dir) ? [{ text: ".", kind: "root" }] : []),
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Whether a name that ends at `end` ends there as a path: no name character follows, nor a
|
|
34
|
+
* separator, which goes on to a path below it, nor a part, whose text goes on with the name,
|
|
35
|
+
* nor a `.` that a word character or a part follows, which goes on to another extension.
|
|
36
|
+
*/
|
|
37
|
+
function endsAt(text, end) {
|
|
38
|
+
const next = text.charAt(end);
|
|
39
|
+
const after = text.charAt(end + 1);
|
|
40
|
+
return (!/[\w@/\\-]/u.test(next) &&
|
|
41
|
+
next !== PART &&
|
|
42
|
+
!(next === "." && (/\w/u.test(after) || after === PART)));
|
|
43
|
+
}
|
|
44
|
+
/** A character a word that writes a path may hold, a part only its run knows among them. */
|
|
45
|
+
const PATH_CHARACTER = new RegExp(`[\\w.@+/\\\\${PART}-]`, "u");
|
|
46
|
+
/** A run of {@link PATH_CHARACTER}s: a word as {@link noFileEnd} reads one. */
|
|
47
|
+
const PATH_WORD = new RegExp(`${PATH_CHARACTER.source}+`, "gu");
|
|
48
|
+
const SCOPED_PACKAGE = /^@[\w-][\w.-]*\/[\w-][\w.-]*(?:@[\w.-]*)?$/u;
|
|
49
|
+
/**
|
|
50
|
+
* The end of what `text` writes from `start`, where `word` starts, that names an image or a
|
|
51
|
+
* package and never a file, or `start` where it names none (roots.13): a value of a `docker:`
|
|
52
|
+
* that starts no longer name, and a scoped package's name, which no part goes on with, since
|
|
53
|
+
* a part beside it may make it a path.
|
|
54
|
+
*/
|
|
55
|
+
function noFileEnd(text, start, word) {
|
|
56
|
+
const end = start + word.length;
|
|
57
|
+
const image = word.startsWith("//") &&
|
|
58
|
+
start >= 7 &&
|
|
59
|
+
text.startsWith("docker:", start - 7) &&
|
|
60
|
+
!NAME_CHARACTER.test(text.charAt(start - 8));
|
|
61
|
+
return image || (SCOPED_PACKAGE.test(word) && !holdsExtension(word)) ? end : start;
|
|
62
|
+
}
|
|
63
|
+
/** Each place of `text` that {@link noFileEnd} rules out, as a 1. */
|
|
64
|
+
function placesNamingNoFile(text) {
|
|
65
|
+
const ruledOut = new Uint8Array(text.length);
|
|
66
|
+
for (const { 0: word, index: start } of text.matchAll(PATH_WORD)) {
|
|
67
|
+
ruledOut.fill(1, start, noFileEnd(text, start, word));
|
|
68
|
+
}
|
|
69
|
+
return ruledOut;
|
|
70
|
+
}
|
|
71
|
+
/** The place after the separators `text` holds from `at`. */
|
|
72
|
+
function pastSeparators(text, at) {
|
|
73
|
+
let after = at;
|
|
74
|
+
while (SEPARATOR.test(text.charAt(after))) {
|
|
75
|
+
after += 1;
|
|
76
|
+
}
|
|
77
|
+
return after;
|
|
78
|
+
}
|
|
79
|
+
/** Whether `name`, found in `text` at `at`, appears there as a path (roots.13). */
|
|
80
|
+
function appearsAsPath(text, at, name) {
|
|
81
|
+
const before = text.charAt(at - 1);
|
|
82
|
+
const end = at + name.text.length;
|
|
83
|
+
if (before === PART) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (name.kind === "root") {
|
|
87
|
+
const after = pastSeparators(text, end);
|
|
88
|
+
return ([before, text.charAt(after)].every((one) => !NAME_CHARACTER.test(one) && !SEPARATOR.test(one)) && text.charAt(after) !== PART);
|
|
89
|
+
}
|
|
90
|
+
if (NAME_CHARACTER.test(before)) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
const after = pastSeparators(text, end);
|
|
94
|
+
if (name.kind === "directory" && after > end && endsAt(text, after)) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if ((SEPARATOR.test(before) || (name.kind === "segment" && name.text.indexOf(".", 1) > 0)) &&
|
|
98
|
+
endsAt(text, end)) {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
return (name.kind === "stem" &&
|
|
102
|
+
NAMED_EXTENSIONS.some((extension) => text.startsWith(extension, end) && endsAt(text, end + extension.length)));
|
|
103
|
+
}
|
|
104
|
+
/** Whether some text holds one of the extensions as a whole. */
|
|
105
|
+
function holdsExtension(written) {
|
|
106
|
+
return NAMED_EXTENSIONS.some((extension) => new RegExp(`${extension.replaceAll(".", "\\.")}(?!\\w)`, "u").test(written));
|
|
107
|
+
}
|
|
108
|
+
/** Whether a word's segment writes path text: text beside its parts other than `.` and `..`. */
|
|
109
|
+
function writesPath(segment) {
|
|
110
|
+
return segment.split(PART).some((piece) => piece !== "" && piece !== "." && piece !== "..");
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Each run of path characters of `word`, at `start`, whose last segment holds a part, read as
|
|
114
|
+
* roots.13 reads one from past its last segment before the last that writes no path: one that
|
|
115
|
+
* writes none names nothing and is `unwritten` where the word may write the file a command runs,
|
|
116
|
+
* where a bare one names a file too. The word stands `depth` segments below the target root,
|
|
117
|
+
* whose own directories no checkout names alike: a leading `..` past it writes none, and an
|
|
118
|
+
* absolute run reads from its last segment that writes a path, `unwritten` where more is left.
|
|
119
|
+
*/
|
|
120
|
+
function dynamicWords(word, start, ruledOut, depth) {
|
|
121
|
+
const { text, runs } = word;
|
|
122
|
+
const found = [];
|
|
123
|
+
let unwritten = false;
|
|
124
|
+
const read = (from, next) => {
|
|
125
|
+
const entry = next < 0;
|
|
126
|
+
// A `.` the word ends with ends a sentence, as endsAt reads one after a name.
|
|
127
|
+
const run = entry ? text : text.slice(from, next).replace(/\.+$/u, "");
|
|
128
|
+
const all = run.replaceAll("\\", "/").split("/");
|
|
129
|
+
const directory = all.length > 1 && all.at(-1) === "";
|
|
130
|
+
const written = all.filter((segment) => segment !== "" && segment !== ".");
|
|
131
|
+
const last = (written.at(-1) ?? "").split(PART);
|
|
132
|
+
// A runtime's entry is a path whatever it looks like, a scoped package's name among them.
|
|
133
|
+
if (!entry && (last.length < 2 || ruledOut[start + from] === 1)) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const climbs = written.findIndex((segment) => segment !== "..");
|
|
137
|
+
const above = Math.max(0, (climbs < 0 ? written.length : climbs) - depth);
|
|
138
|
+
const segments = written.filter((_, at) => at < climbs || at >= climbs + above);
|
|
139
|
+
if (!segments.some(writesPath)) {
|
|
140
|
+
unwritten ||= runs && (!entry || above > 0);
|
|
141
|
+
}
|
|
142
|
+
else if (all.length > 1 || holdsExtension(last.join("")) || runs) {
|
|
143
|
+
const kept = directory ? segments.length : segments.length - 1;
|
|
144
|
+
const anyDirectory = segments.slice(0, kept).findLastIndex((one) => !writesPath(one));
|
|
145
|
+
const absolute = all[0] === "" && all.length > 1 && anyDirectory < 0;
|
|
146
|
+
const from = absolute ? segments.findLastIndex(writesPath) : anyDirectory + 1;
|
|
147
|
+
unwritten ||= runs && absolute && from < segments.length - 1;
|
|
148
|
+
const glob = segments.slice(from).join("/");
|
|
149
|
+
found.push({ glob: glob === "" ? ["", ""] : glob.split(PART), directory });
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
if (runs && !text.includes(PART)) {
|
|
153
|
+
read(0, -1);
|
|
154
|
+
}
|
|
155
|
+
let at = text.indexOf(PART);
|
|
156
|
+
while (at >= 0) {
|
|
157
|
+
let from = at;
|
|
158
|
+
while (from > 0 && PATH_CHARACTER.test(text.charAt(from - 1))) {
|
|
159
|
+
from -= 1;
|
|
160
|
+
}
|
|
161
|
+
let next = at;
|
|
162
|
+
while (next < text.length && PATH_CHARACTER.test(text.charAt(next))) {
|
|
163
|
+
next += 1;
|
|
164
|
+
}
|
|
165
|
+
read(from, next);
|
|
166
|
+
at = text.indexOf(PART, Math.max(next, at + 1));
|
|
167
|
+
}
|
|
168
|
+
return { found, unwritten };
|
|
169
|
+
}
|
|
170
|
+
/** Whether `segment` is the text `glob` writes, any text standing between two of its parts. */
|
|
171
|
+
function standsFor(glob, segment) {
|
|
172
|
+
const first = glob[0] ?? "";
|
|
173
|
+
const last = glob.at(-1) ?? "";
|
|
174
|
+
if (glob.length === 1) {
|
|
175
|
+
return segment === first;
|
|
176
|
+
}
|
|
177
|
+
if (!segment.startsWith(first) ||
|
|
178
|
+
!segment.endsWith(last) ||
|
|
179
|
+
first.length + last.length > segment.length) {
|
|
180
|
+
return false;
|
|
181
|
+
}
|
|
182
|
+
let at = first.length;
|
|
183
|
+
const end = segment.length - last.length;
|
|
184
|
+
for (const middle of glob.slice(1, -1)) {
|
|
185
|
+
const found = segment.indexOf(middle, at);
|
|
186
|
+
if (found < 0 || found + middle.length > end) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
at = found + middle.length;
|
|
190
|
+
}
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
/** Whether a word's glob may write `path` or the end of it after a `/`. */
|
|
194
|
+
function mayStandFor(glob, path) {
|
|
195
|
+
let at = 0;
|
|
196
|
+
while (!standsFor(glob, path.slice(at))) {
|
|
197
|
+
const slash = path.indexOf("/", at);
|
|
198
|
+
if (slash < 0) {
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
at = slash + 1;
|
|
202
|
+
}
|
|
203
|
+
return true;
|
|
29
204
|
}
|
|
30
205
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
206
|
+
* Each spelling of one path below `dir` a word may write the end of: the whole path from `root`,
|
|
207
|
+
* so a word may write the directories between them too, but no checkout's own, without its
|
|
208
|
+
* extension, and without its `/index` part, which alone is a directory's spelling.
|
|
34
209
|
*/
|
|
35
|
-
|
|
36
|
-
const
|
|
210
|
+
function spellingsBelow(path, dir, root) {
|
|
211
|
+
const fromRoot = relativePath(root, path);
|
|
212
|
+
if (relativePath(dir, path) === undefined || fromRoot === undefined) {
|
|
213
|
+
return { file: [], directory: [] };
|
|
214
|
+
}
|
|
215
|
+
const whole = `/${fromRoot}`;
|
|
216
|
+
const extension = extensionOf(whole, NAMED_EXTENSIONS);
|
|
217
|
+
const bare = extension === undefined ? whole : whole.slice(0, -extension.length);
|
|
218
|
+
const directory = bare.endsWith("/index") ? [bare.slice(0, -"/index".length)] : [];
|
|
219
|
+
return { file: [whole, bare, ...directory], directory };
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Every file of `files` below `dir` that `words` name: one of whose {@link namesOf} a path of it
|
|
223
|
+
* has appears in a word as a path, or a spelling of one of whose paths a word that writes a
|
|
224
|
+
* path with a part only its run knows may stand for, and whether a word that may write the
|
|
225
|
+
* file a command runs writes no path text. A file the words do not name may be named too, and
|
|
226
|
+
* no file a word writes as a path outside an image's or a package's name is missed.
|
|
227
|
+
*/
|
|
228
|
+
export function spelledFiles(words, dir, root, files) {
|
|
229
|
+
const byName = new Map();
|
|
37
230
|
for (const { file, paths } of files) {
|
|
38
231
|
const [own] = paths;
|
|
39
232
|
if (own === undefined || relativePath(dir, own) === undefined) {
|
|
40
233
|
continue;
|
|
41
234
|
}
|
|
42
|
-
|
|
43
|
-
|
|
235
|
+
const seen = new Set();
|
|
236
|
+
for (const name of paths.flatMap((path) => namesOf(path, dir))) {
|
|
237
|
+
const key = `${name.kind}\u0000${name.text}`;
|
|
238
|
+
if (!seen.has(key)) {
|
|
239
|
+
seen.add(key);
|
|
240
|
+
byName.set(name.text, [...(byName.get(name.text) ?? []), { file, name }]);
|
|
241
|
+
}
|
|
44
242
|
}
|
|
45
243
|
}
|
|
46
244
|
const found = new Set();
|
|
47
|
-
|
|
48
|
-
|
|
245
|
+
const text = words.map((word) => word.text).join("\n");
|
|
246
|
+
const ruledOut = placesNamingNoFile(text);
|
|
247
|
+
// One pass per name length: each place of the text is looked up once for every length.
|
|
248
|
+
for (const length of new Set([...byName.keys()].map((name) => name.length))) {
|
|
49
249
|
for (let at = 0; at + length <= text.length; at += 1) {
|
|
50
|
-
|
|
250
|
+
for (const { file, name } of byName.get(text.slice(at, at + length)) ?? []) {
|
|
251
|
+
if (!found.has(file) && ruledOut[at] !== 1 && appearsAsPath(text, at, name)) {
|
|
252
|
+
found.add(file);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
51
255
|
}
|
|
52
256
|
}
|
|
53
|
-
|
|
257
|
+
const dynamic = [];
|
|
258
|
+
let unwritten = false;
|
|
259
|
+
let start = 0;
|
|
260
|
+
const depth = normalizePath(dir) === normalizePath(root)
|
|
261
|
+
? 0
|
|
262
|
+
: (relativePath(root, dir)?.split("/").length ?? 0);
|
|
263
|
+
for (const word of words) {
|
|
264
|
+
const read = dynamicWords(word, start, ruledOut, depth);
|
|
265
|
+
dynamic.push(...read.found);
|
|
266
|
+
unwritten ||= read.unwritten;
|
|
267
|
+
start += word.text.length + 1;
|
|
268
|
+
}
|
|
269
|
+
if (dynamic.length > 0) {
|
|
270
|
+
for (const { file, paths } of files) {
|
|
271
|
+
const spellings = paths.map((path) => spellingsBelow(path, dir, root));
|
|
272
|
+
if (!found.has(file) &&
|
|
273
|
+
dynamic.some((word) => spellings.some((spelled) => (word.directory ? spelled.directory : spelled.file).some((one) => mayStandFor(word.glob, one))))) {
|
|
274
|
+
found.add(file);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return { files: [...found], unwritten };
|
|
54
279
|
}
|
|
55
|
-
/** A character a package's or a command's name may hold, so one beside a name makes it part of a longer one. */
|
|
56
|
-
const NAME_CHARACTER = /[\w.@-]/u;
|
|
57
280
|
/**
|
|
58
281
|
* Each of `names`, a package's or a command's name, that `text` holds with no name character
|
|
59
282
|
* before it and no character after it but one a path or a version may go on with, `/`, `.` or
|
|
@@ -98,13 +98,28 @@ function unseenLoadNotes(loads) {
|
|
|
98
98
|
/** One note per package whose command strings name files a configuration holds, naming every such file. */
|
|
99
99
|
function heldScriptNotes(held, targetRoot) {
|
|
100
100
|
const files = new Map();
|
|
101
|
+
const unwritten = new Set();
|
|
101
102
|
for (const one of held) {
|
|
102
103
|
files.set(one.dir, new Set([...(files.get(one.dir) ?? []), ...one.files]));
|
|
104
|
+
if (one.unwritten) {
|
|
105
|
+
unwritten.add(one.dir);
|
|
106
|
+
}
|
|
103
107
|
}
|
|
104
108
|
return [...files].map(([dir, paths]) => ({
|
|
105
109
|
kind: "unread-command",
|
|
106
110
|
path: relativePath(targetRoot, dir) ?? ".",
|
|
107
|
-
message:
|
|
111
|
+
message: [
|
|
112
|
+
...(paths.size === 0
|
|
113
|
+
? []
|
|
114
|
+
: [
|
|
115
|
+
`commands the analysis does not read name ${[...paths].sort(bytewise).join(", ")}, so no finding is reported about ${paths.size === 1 ? "that file itself or the names it exports" : "those files themselves or the names they export"}`,
|
|
116
|
+
]),
|
|
117
|
+
...(unwritten.has(dir)
|
|
118
|
+
? [
|
|
119
|
+
"a command runs a file whose path no word of it writes, so a finding that a file of the package is never built or never imported is possible at most",
|
|
120
|
+
]
|
|
121
|
+
: []),
|
|
122
|
+
].join("; "),
|
|
108
123
|
}));
|
|
109
124
|
}
|
|
110
125
|
function unresolvedNotes(specifiers) {
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/analysis.ts
CHANGED
|
@@ -1116,6 +1116,16 @@ export function emitterInputOver(
|
|
|
1116
1116
|
generated: new Set(projects.flatMap((one) => [...one.extra.generated.keys()])),
|
|
1117
1117
|
inOperands: new Set(projects.flatMap((one) => one.extra.inOperands)),
|
|
1118
1118
|
unseenLoads: projects.flatMap((one) => one.extra.unseenLoads),
|
|
1119
|
+
unwrittenRuns: new Set(
|
|
1120
|
+
projects.flatMap((one) =>
|
|
1121
|
+
one.heldScripts
|
|
1122
|
+
.filter((held) => held.unwritten)
|
|
1123
|
+
.map(
|
|
1124
|
+
(held) =>
|
|
1125
|
+
relativePath(resolvePath(host.workingDirectory(), targetRoot), held.dir) ?? ".",
|
|
1126
|
+
),
|
|
1127
|
+
),
|
|
1128
|
+
),
|
|
1119
1129
|
},
|
|
1120
1130
|
boundary: {
|
|
1121
1131
|
consumers: {
|
|
@@ -1389,7 +1399,9 @@ export function unansweredCounts(analysis: RunAnalysis): readonly UnansweredCoun
|
|
|
1389
1399
|
analysis.run.unread.filter(
|
|
1390
1400
|
(one) => one.kind === "manifest" && one.configFile === project.configFile,
|
|
1391
1401
|
).length +
|
|
1392
|
-
analysis.run.heldScripts.filter(
|
|
1402
|
+
analysis.run.heldScripts.filter(
|
|
1403
|
+
(one) => one.configFile === project.configFile && one.files.length > 0,
|
|
1404
|
+
).length;
|
|
1393
1405
|
|
|
1394
1406
|
if (questions === 0) {
|
|
1395
1407
|
return [];
|