shouldPruneDirectory static method

bool shouldPruneDirectory(
  1. String dirName
)

Checks if a directory name should be pruned during scanning.

Implementation

static bool shouldPruneDirectory(String dirName) {
  // Prune common directories that are not Flutter projects
  final pruneList = {
    '.git',
    'node_modules',
    '.dart_tool',
    'build',
    '.idea',
    '.vscode',
    '.vs',
    'DerivedData',
    'Pods',
    '.gradle',
    'target', // Rust
    'venv',
    'env',
    '.venv',
    '__pycache__',
    '.pytest_cache',
  };

  return pruneList.contains(dirName);
}