MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / enabled

Function enabled

out/cli.cjs:75262–75277  ·  view source on GitHub ↗
(namespace)

Source from the content-addressed store, hash-verified

75260 } else {
75261 enabledNamespaces.push(new RegExp(`^${ns}$`));
75262 }
75263 }
75264 for (const instance of debuggers) {
75265 instance.enabled = enabled(instance.namespace);
75266 }
75267}
75268function enabled(namespace) {
75269 if (namespace.endsWith("*")) {
75270 return true;
75271 }
75272 for (const skipped of skippedNamespaces) {
75273 if (skipped.test(namespace)) {
75274 return false;
75275 }
75276 }
75277 for (const enabledNamespace of enabledNamespaces) {
75278 if (enabledNamespace.test(namespace)) {
75279 return true;
75280 }

Callers 2

enableFunction · 0.85
createDebuggerFunction · 0.85

Calls 2

endsWithMethod · 0.80
testMethod · 0.80

Tested by

no test coverage detected