MCPcopy Create free account
hub / github.com/webpro-nl/knip / getProjectFilePatterns

Method getProjectFilePatterns

packages/knip/src/WorkspaceWorker.ts:187–192  ·  view source on GitHub ↗
(projectFilePatterns: string[])

Source from the content-addressed store, hash-verified

185 }
186
187 getProjectFilePatterns(projectFilePatterns: string[]) {
188 const { project } = this.config;
189 if (project.length === 0) return [];
190 const excludeProductionNegations = project.filter(pattern => !(pattern.startsWith('!') && pattern.endsWith('!')));
191 return [excludeProductionNegations, projectFilePatterns, this.negatedWorkspacePatterns].flat();
192 }
193
194 getPluginProjectFilePatterns(patterns: string[] = []) {
195 for (const [pluginName, plugin] of PluginEntries) {

Callers 1

buildFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected