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

Method getProjectFilePatterns

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

Source from the content-addressed store, hash-verified

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

Callers 1

buildFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected