Documentation
¶
Overview ¶
Package starcode provides Starlark source file capture with glob pattern matching, .gitignore awareness, and optional .bzl file inclusion.
Index ¶
- type Provider
- type Sources
- func (s *Sources) Analyze(cfg staranalysis.AnalysisConfig) (*staranalysis.AnalysisReport, error)
- func (s *Sources) Count() int
- func (s *Sources) Index(withDocstrings, withGlobals bool) (*starindex.Index, error)
- func (s *Sources) Paths() []string
- func (s *Sources) Stats(withBytes, withLOC bool) (*starstats.Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
Root string
}
Provider performs Starlark source capture.
+devlore:access=immediate +devlore:bind Root=WorkDir
type Sources ¶
type Sources struct {
Root string // absolute root directory
Files []string // absolute paths, sorted
}
Sources holds a captured set of Starlark source files.
func (*Sources) Analyze ¶
func (s *Sources) Analyze(cfg staranalysis.AnalysisConfig) (*staranalysis.AnalysisReport, error)
Analyze performs a combined analysis of all captured files.
+devlore:struct_param cfg=staranalysis.AnalysisConfig
func (*Sources) Index ¶
Index parses all captured files and extracts functions, loads, and globals. If withDocstrings is true, function docstrings are extracted. If withGlobals is true, top-level assignments are captured.
+devlore:defaults withDocstrings=true,withGlobals=true