Skip to main content

Module config

Module config 

Source

Structs§

Config
Top-level config from .cha.toml.
DebtWeights
Custom debt estimation weights (minutes per severity level).
LanguageConfig
Per-language config overlay.
LayersConfig
Manual module and tier definitions for architecture analysis.
PluginConfig
Per-plugin config section.
TierConfig
A single tier definition.

Enums§

Strictness
Strictness level — controls threshold scaling. relaxed = 2.0x (thresholds doubled, more lenient), default = 1.0x, strict = 0.5x (thresholds halved). Can also be a custom float like 0.7.
StrictnessLevel

Functions§

builtin_language_profile
Builtin language profiles: default plugin settings for specific languages. Returns (plugin_name, enabled, options) tuples. Users can override via [languages.xx.plugins.yy]. Only real plugin names allowed — smell-level disables go in builtin_language_smell_disables.
builtin_language_smell_disables
Builtin smell-level disables for specific languages. Use when a plugin emits multiple smells but only some should be suppressed.

Type Aliases§

PluginProfile
A builtin plugin profile entry: (name, enabled, option overrides).