Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Ignore []string `json:"ignore,omitempty"`
MaxDepth int `json:"max_depth,omitempty"`
MaxModules int `json:"max_modules,omitempty"`
MaxExports int `json:"max_exports,omitempty"`
Output OutputConfig `json:"output,omitempty"`
}
Config holds the settings loaded from a .stacklitrc.json file.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config populated with sensible defaults.
func Load ¶
Load reads .stacklitrc.json from root and merges it over the defaults. If the file does not exist or cannot be parsed, defaults are returned.
func (*Config) ScanIgnore ¶ added in v0.3.2
ScanIgnore returns ignore patterns plus Stacklit output files so generated artifacts never feed back into the next scan. All patterns are normalized to forward slashes so they match the walker's normalized paths on every OS.
type OutputConfig ¶
type OutputConfig struct {
JSON string `json:"json,omitempty"`
Mermaid string `json:"mermaid,omitempty"`
HTML string `json:"html,omitempty"`
}
OutputConfig controls where output files are written.
Click to show internal directories.
Click to hide internal directories.