Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
IncludePlainFolders bool
Git dsgit.Runner
// Ignore overrides the compiled ignore policy used to prune directories.
// When nil, Walk compiles the root's .devstrapignore itself (falling back
// to defaults with a warning on a compile error). Tests inject a Matcher
// here to avoid touching the real filesystem's .devstrapignore.
Ignore *ignore.Matcher
}
type Result ¶
type Result struct {
Root string `json:"root"`
Findings []Finding `json:"findings"`
Warnings []string `json:"warnings,omitempty"`
Duplicates []Duplicate `json:"duplicates,omitempty"`
// Secrets lists secret-looking files (relative slash paths) discovered
// during the walk so callers can quarantine or ignore them.
Secrets []string `json:"secrets,omitempty"`
// PrunedDirs counts directories skipped by the ignore rules (defaults +
// root .devstrapignore). Informational: the CLI surfaces it as progress
// output, not a warning, so run-loop ticks stay quiet about routine prunes.
PrunedDirs int
}
Click to show internal directories.
Click to hide internal directories.