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.

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 through the engine boundary.
discover_workspace_packages_with_diagnostics
Discover workspace packages and diagnostics through the engine boundary.
is_allowed_hidden_dir
Check if a hidden directory name is on the discovery allowlist.