Skip to main content

Module discover

Module discover 

Source
Expand description

Discovery helpers and types exposed through the engine boundary.

Structs§

AnalysisDiscovery
Reusable engine discovery prelude for one resolved project.
DiscoveredFile
A discovered source file on disk.
EntryPoint
An entry point into the module graph.
FileId
Compact file identifier.
HiddenDirScope
Package-scoped hidden directories that source discovery should traverse.

Enums§

EntryPointSource
Where an entry point was discovered from.
HiddenDirMatch
How a HiddenDirScope matches a hidden directory during the walk.

Constants§

ALLOWED_HIDDEN_DIRS
Discovery vocabulary shared with the analysis backend: file extensions, production-exclusion globs, and the hidden directories traversal allows. Hidden (dot-prefixed) directories that should be included in file discovery.
PRODUCTION_EXCLUDE_PATTERNS
Discovery vocabulary shared with the analysis backend: file extensions, production-exclusion globs, and the hidden directories traversal allows. Glob patterns for test/dev/story files excluded in production mode.
SOURCE_EXTENSIONS
Discovery vocabulary shared with the analysis backend: file extensions, production-exclusion globs, and the hidden directories traversal allows. File extensions discovery treats as analyzable source files.

Functions§

collect_plugin_hidden_dir_scopes
Collect plugin-derived hidden directory scopes.
discover_files_and_config_candidates
Discover source files and non-source config candidates in one traversal.
discover_workspace_packages
Discover workspace packages from the manifests only, through the engine boundary.
discover_workspace_packages_for_config
Discover workspace packages and diagnostics through the engine boundary, with the workspaces.patterns of the resolved config added to the manifest patterns.
discover_workspace_packages_with_patterns
Like discover_workspace_packages, with the workspaces.patterns of the resolved config added to the manifest patterns.
is_allowed_hidden_dir
Check if a hidden directory name is on the discovery allowlist.