MCPcopy
hub / github.com/larksuite/cli / collectSensitiveKeywords

Function collectSensitiveKeywords

scripts/pr-labels/index.js:325–334  ·  view source on GitHub ↗
(filenames)

Source from the content-addressed store, hash-verified

323}
324
325function collectSensitiveKeywords(filenames) {
326 const hits = new Set();
327 for (const name of filenames) {
328 const match = normalizePath(name).match(SENSITIVE_PATTERN);
329 if (match && match[2]) {
330 hits.add(match[2]);
331 }
332 }
333 return [...hits].sort();
334}
335
336// ============================================================================
337// Classification Logic

Callers 1

classifyPrFunction · 0.85

Calls 3

normalizePathFunction · 0.85
matchMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected