How dragee-io/clean-asserter works
Main Components
A. Core Components:
• Rules Engine (Central component)
• Controller Rules Validator
• Presenter Rules Validator
• Use Case Rules Validator
B. Supporting Components:
• Clean Model Definition
• Test Framework
• Documentation Generator
┌─────────────────────────────────────────────┐
• Clean Asserter │
• ┤
• ┌─────────────┐ ┌──────────────────┐ │
• Rules │ │ Clean Model │ │
• Engine │────│ Definition │ │
• ┘ └──────────────────┘ │
• ▼ │
• ┌─────────────────────────────────────┐ │
• Validation Rules │ │
• ┬────────────┬─────────┤ │
• Controller │ Presenter │ Use Case│ │
• Rules │ Rules │ Rules │ │
• ┴────────────┴─────────┘ │
• ┘
Important Elements to Highlight
a. Rules Implementation:
• How the three main rule types (Controller, Presenter, Use Case) interact
• Mandatory dependencies validation flow
• Allowed dependencies validation flow
b. Testing Framework:
• Test cases validation flow
• How rule validation results are processed
Specific Implementation Details
• Rule validation process
• Clean architecture principle enforcement
• Test case execution flow
• Documentation generation pipeline