validate_architecture_code
Validates Dart source code against Clean Architecture layer rules and returns structured violations for read-only static analysis.
Instructions
Validate Dart source code against enterprise Clean Architecture rules for a specific layer.
Strictly READ-ONLY: Performs static analysis on the provided code string without writing files.
Zero Mock Data: Fails fast on invalid inputs or malformed layers, returning structured violations.
Args:
dart_code: Full Dart source code to analyze.
layer: Architecture layer ('domain', 'data', 'presentation', 'core', 'module').
architecture_profile: Approved mode: imespro, external-structured, or external-standard.
Omitted values retain legacy iMESPro checks. External Client conventions need manual verification.
Returns:
Dictionary with status, valid flag, list of violations, checked rules, and unsupported checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| dart_code | Yes | ||
| architecture_profile | No | imespro |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||