TtsrConfig class final
A parsed TTSR configuration: manager settings plus the rules to monitor.
Constructors
-
TtsrConfig({TtsrSettings settings = TtsrSettings.defaultSettings, List<
TtsrRule> rules = const []}) -
Creates a config.
const
-
TtsrConfig.fromYaml(Object? node, {String? sourcePath, List<
String> ? warnings}) -
Parses the
ttsr:section of the CLI config (settings + rules).factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rules
→ List<
TtsrRule> -
Rules to register (registration order matters: the manager dedupes by
name, first wins — hosts put project rules ahead of user rules).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → TtsrSettings
-
Manager settings.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → String -
Serializes back to the
ttsr:yaml section (round-trips with TtsrConfig.fromYaml); strings are JSON-quoted, which yaml parses identically.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
rulesFromYaml(
Object? node, {String? sourcePath, List< String> ? warnings}) → List<TtsrRule> -
Parses a project rules file (
.fah/rules.yaml): a map with arules:list and no settings. -
rulesFromYamlList(
Object? node, {String? sourcePath, List< String> ? warnings, required String section}) → List<TtsrRule> - Parses a yaml rule list (shared by the config section and the project file).