|
1 | 1 | //! Configuration loading and management for Rust Guardian |
2 | 2 | //! |
3 | | -//! CDD Principle: Anti-Corruption Layer - Configuration translates external YAML formats |
| 3 | +//! Architecture: Anti-Corruption Layer - Configuration translates external YAML formats |
4 | 4 | //! - Raw YAML structures are converted to clean domain objects |
5 | 5 | //! - Default configurations are embedded in the domain, not infrastructure |
6 | 6 | //! - Configuration acts as a repository for pattern rules and path filters |
@@ -243,10 +243,10 @@ impl GuardianConfig { |
243 | 243 | }), |
244 | 244 | }, |
245 | 245 | PatternRule { |
246 | | - id: "cdd_header_missing".to_string(), |
| 246 | + id: "architectural_header_missing".to_string(), |
247 | 247 | rule_type: RuleType::Regex, |
248 | | - pattern: r"//!\s*(?:.*\n)*?\s*//!\s*CDD Principle:".to_string(), |
249 | | - message: "File missing CDD principle header".to_string(), |
| 248 | + pattern: r"//!\s*(?:.*\n)*?\s*//!\s*Architecture:".to_string(), |
| 249 | + message: "File missing architectural principle header".to_string(), |
250 | 250 | severity: Some(Severity::Info), |
251 | 251 | enabled: false, // Disabled by default, can be enabled per project |
252 | 252 | case_sensitive: false, |
@@ -454,7 +454,7 @@ impl Default for ConfigBuilder { |
454 | 454 | } |
455 | 455 |
|
456 | 456 | impl GuardianConfig { |
457 | | - /// Self-validating configuration integrity check following CDD principles |
| 457 | + /// Self-validating configuration integrity check following architectural principles |
458 | 458 | /// Guardian validates itself rather than relying on external tests |
459 | 459 | pub fn verify_config_integrity(&self) -> GuardianResult<()> { |
460 | 460 | // Domain validates its own consistency |
|
0 commit comments