@the-bearded-bear/claude-craft 3.1.2 → 3.3.1-next.f4f0d1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dev/i18n/de/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/de/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/de/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/de/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/de/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/de/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/de/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/de/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/de/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/de/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/de/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/de/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/de/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/de/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/de/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/de/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/de/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/de/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/de/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/de/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/de/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/de/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/de/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/de/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/de/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/de/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/de/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/de/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/de/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/de/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/de/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/de/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/de/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/de/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/de/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/de/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/de/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/de/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/de/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/de/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/de/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/de/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/de/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/de/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/de/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/de/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/de/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/de/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/de/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/de/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/de/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/de/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/de/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/de/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/de/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/de/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/de/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/de/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/de/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/de/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/de/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/de/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/de/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/de/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/de/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/de/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/de/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/de/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/de/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/de/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/de/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/de/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/de/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/de/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/de/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/de/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/de/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/de/PHP/templates/entity.md +435 -0
- package/Dev/i18n/de/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/de/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/de/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/de/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/de/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/de/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/de/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/de/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/de/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/de/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/de/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/de/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/de/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/de/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/de/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/de/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/de/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/de/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/de/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/de/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/de/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/de/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/de/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/en/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/en/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/en/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/en/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/en/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/en/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/en/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/en/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/en/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/en/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/en/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/en/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/en/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/en/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/en/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/en/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/en/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/en/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/en/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/en/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/en/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/en/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/en/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/en/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/en/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/en/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/en/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/en/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/en/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/en/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/en/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/en/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/en/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/en/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/en/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/en/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/en/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/en/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/en/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/en/Common/commands/add-technology.md +293 -0
- package/Dev/i18n/en/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/en/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/en/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/en/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/en/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/en/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/en/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/en/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/en/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/en/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/en/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/en/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/en/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/en/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/en/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/en/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/en/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/en/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/en/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/en/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/en/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/en/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/en/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/en/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/en/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/en/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/en/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/en/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/en/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/en/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/en/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/en/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/en/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/en/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/en/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/en/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/en/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/en/PHP/templates/entity.md +435 -0
- package/Dev/i18n/en/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/en/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/en/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/en/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/en/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/en/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/en/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/en/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/en/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/en/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/en/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/en/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/en/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/en/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/en/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/en/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/en/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/en/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/en/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/en/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/en/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/en/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/en/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/es/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/es/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/es/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/es/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/es/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/es/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/es/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/es/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/es/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/es/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/es/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/es/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/es/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/es/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/es/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/es/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/es/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/es/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/es/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/es/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/es/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/es/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/es/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/es/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/es/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/es/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/es/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/es/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/es/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/es/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/es/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/es/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/es/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/es/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/es/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/es/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/es/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/es/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/es/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/es/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/es/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/es/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/es/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/es/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/es/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/es/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/es/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/es/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/es/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/es/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/es/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/es/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/es/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/es/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/es/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/es/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/es/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/es/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/es/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/es/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/es/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/es/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/es/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/es/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/es/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/es/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/es/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/es/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/es/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/es/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/es/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/es/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/es/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/es/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/es/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/es/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/es/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/es/PHP/templates/entity.md +435 -0
- package/Dev/i18n/es/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/es/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/es/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/es/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/es/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/es/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/es/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/es/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/es/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/es/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/es/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/es/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/es/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/es/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/es/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/es/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/es/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/es/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/es/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/es/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/es/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/es/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/es/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/fr/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/fr/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/fr/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/fr/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/fr/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/fr/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/fr/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/fr/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/fr/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/fr/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/fr/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/fr/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/fr/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/fr/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/fr/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/fr/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/fr/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/fr/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/fr/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/fr/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/fr/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/fr/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/fr/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/fr/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/fr/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/fr/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/fr/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/fr/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/fr/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/fr/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/fr/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/fr/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/fr/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/fr/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/fr/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/fr/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/fr/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/fr/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/fr/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/fr/Common/commands/add-technology.md +293 -0
- package/Dev/i18n/fr/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/fr/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/fr/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/fr/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/fr/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/fr/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/fr/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/fr/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/fr/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/fr/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/fr/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/fr/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/fr/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/fr/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/fr/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/fr/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/fr/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/fr/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/fr/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/fr/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/fr/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/fr/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/fr/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/fr/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/fr/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/fr/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/fr/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/fr/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/fr/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/fr/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/fr/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/fr/PHP/rules/02-architecture-php.md +506 -0
- package/Dev/i18n/fr/PHP/rules/03-coding-standards.md +585 -0
- package/Dev/i18n/fr/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/fr/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/fr/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/fr/PHP/rules/11-security-php.md +642 -0
- package/Dev/i18n/fr/PHP/templates/entity.md +435 -0
- package/Dev/i18n/fr/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/fr/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/fr/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/fr/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/fr/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/fr/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/fr/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/fr/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/fr/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/fr/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/fr/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/fr/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/fr/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/fr/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/fr/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/fr/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/fr/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/fr/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/fr/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/fr/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/fr/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/fr/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/fr/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/pt/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/pt/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/pt/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/pt/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/pt/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/pt/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/pt/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/pt/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/pt/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/pt/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/pt/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/pt/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/pt/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/pt/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/pt/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/pt/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/pt/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/pt/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/pt/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/pt/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/pt/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/pt/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/pt/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/pt/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/pt/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/pt/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/pt/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/pt/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/pt/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/pt/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/pt/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/pt/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/pt/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/pt/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/pt/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/pt/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/pt/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/pt/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/pt/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/pt/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/pt/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/pt/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/pt/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/pt/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/pt/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/pt/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/pt/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/pt/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/pt/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/pt/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/pt/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/pt/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/pt/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/pt/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/pt/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/pt/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/pt/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/pt/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/pt/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/pt/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/pt/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/pt/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/pt/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/pt/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/pt/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/pt/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/pt/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/pt/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/pt/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/pt/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/pt/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/pt/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/pt/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/pt/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/pt/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/pt/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/pt/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/pt/PHP/templates/entity.md +435 -0
- package/Dev/i18n/pt/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/pt/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/pt/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/pt/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/pt/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/pt/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/pt/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/pt/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/pt/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/pt/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/pt/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/pt/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/pt/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/pt/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/pt/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/pt/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/pt/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/pt/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/pt/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/pt/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/pt/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/pt/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/pt/VueJS/templates/test.template.ts +233 -0
- package/Dev/scripts/install-angular-rules.sh +543 -0
- package/Dev/scripts/install-common-rules.sh +13 -1
- package/Dev/scripts/install-csharp-rules.sh +544 -0
- package/Dev/scripts/install-flutter-rules.sh +17 -4
- package/Dev/scripts/install-from-config.sh +61 -23
- package/Dev/scripts/install-laravel-rules.sh +552 -0
- package/Dev/scripts/install-php-rules.sh +537 -0
- package/Dev/scripts/install-python-rules.sh +17 -4
- package/Dev/scripts/install-react-rules.sh +17 -4
- package/Dev/scripts/install-reactnative-rules.sh +17 -4
- package/Dev/scripts/install-symfony-rules.sh +22 -4
- package/Dev/scripts/install-vuejs-rules.sh +588 -0
- package/README.md +68 -2
- package/Tools/Ralph/README.md +106 -10
- package/Tools/Ralph/lib/checkpoint.sh +15 -9
- package/Tools/Ralph/lib/circuit-breaker.sh +16 -7
- package/Tools/Ralph/lib/context-manager.sh +473 -0
- package/Tools/Ralph/lib/context-reconstruction.sh +329 -0
- package/Tools/Ralph/lib/dod-validator.sh +17 -4
- package/Tools/Ralph/lib/loop.sh +33 -10
- package/Tools/Ralph/lib/session.sh +88 -33
- package/Tools/Ralph/lib/sprint-progress.sh +832 -0
- package/Tools/Ralph/lib/utils.sh +362 -0
- package/Tools/Ralph/ralph.sh +172 -14
- package/Tools/Ralph/templates/ralph.yml.template +87 -0
- package/Tools/Ralph/templates/sprint-progress.md.template +72 -0
- package/Tools/i18n/ralph/de.sh +31 -0
- package/Tools/i18n/ralph/en.sh +31 -0
- package/Tools/i18n/ralph/es.sh +31 -0
- package/Tools/i18n/ralph/fr.sh +31 -0
- package/Tools/i18n/ralph/pt.sh +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run comprehensive code quality analysis on C#/.NET project
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# C#/.NET Code Quality Check
|
|
6
|
+
|
|
7
|
+
You are a C#/.NET code quality expert. Analyze the codebase for code smells, anti-patterns, and quality issues.
|
|
8
|
+
|
|
9
|
+
## Analysis Areas
|
|
10
|
+
|
|
11
|
+
### 1. Async/Await Patterns
|
|
12
|
+
|
|
13
|
+
**Check for anti-patterns:**
|
|
14
|
+
|
|
15
|
+
```csharp
|
|
16
|
+
// ❌ BAD: Blocking on async code
|
|
17
|
+
var result = GetDataAsync().Result; // Deadlock risk!
|
|
18
|
+
var data = GetDataAsync().GetAwaiter().GetResult(); // Also bad
|
|
19
|
+
task.Wait(); // Blocking
|
|
20
|
+
|
|
21
|
+
// ✅ GOOD: Proper async
|
|
22
|
+
var result = await GetDataAsync();
|
|
23
|
+
await task;
|
|
24
|
+
|
|
25
|
+
// ❌ BAD: async void (except event handlers)
|
|
26
|
+
public async void ProcessOrder(Guid id) { }
|
|
27
|
+
|
|
28
|
+
// ✅ GOOD: async Task
|
|
29
|
+
public async Task ProcessOrderAsync(Guid id) { }
|
|
30
|
+
|
|
31
|
+
// ❌ BAD: Missing CancellationToken
|
|
32
|
+
public async Task<Order> GetOrderAsync(Guid id) { }
|
|
33
|
+
|
|
34
|
+
// ✅ GOOD: CancellationToken propagated
|
|
35
|
+
public async Task<Order> GetOrderAsync(Guid id, CancellationToken ct = default) { }
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. LINQ Performance
|
|
39
|
+
|
|
40
|
+
**Inefficient patterns:**
|
|
41
|
+
|
|
42
|
+
```csharp
|
|
43
|
+
// ❌ BAD: Multiple enumerations
|
|
44
|
+
var list = items.Where(x => x.Active);
|
|
45
|
+
var count = list.Count();
|
|
46
|
+
var first = list.First();
|
|
47
|
+
|
|
48
|
+
// ✅ GOOD: Single enumeration
|
|
49
|
+
var list = items.Where(x => x.Active).ToList();
|
|
50
|
+
var count = list.Count;
|
|
51
|
+
var first = list[0];
|
|
52
|
+
|
|
53
|
+
// ❌ BAD: N+1 query problem
|
|
54
|
+
var orders = await _context.Orders.ToListAsync();
|
|
55
|
+
foreach (var order in orders)
|
|
56
|
+
{
|
|
57
|
+
var items = await _context.OrderItems // N additional queries!
|
|
58
|
+
.Where(i => i.OrderId == order.Id)
|
|
59
|
+
.ToListAsync();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ✅ GOOD: Eager loading
|
|
63
|
+
var orders = await _context.Orders
|
|
64
|
+
.Include(o => o.Items)
|
|
65
|
+
.ToListAsync();
|
|
66
|
+
|
|
67
|
+
// ❌ BAD: Loading all columns
|
|
68
|
+
var orders = await _context.Orders.ToListAsync();
|
|
69
|
+
return orders.Select(o => new { o.Id, o.Status });
|
|
70
|
+
|
|
71
|
+
// ✅ GOOD: Projection at database level
|
|
72
|
+
var orders = await _context.Orders
|
|
73
|
+
.Select(o => new OrderSummaryDto { Id = o.Id, Status = o.Status })
|
|
74
|
+
.ToListAsync();
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 3. Memory Management
|
|
78
|
+
|
|
79
|
+
**Memory issues:**
|
|
80
|
+
|
|
81
|
+
```csharp
|
|
82
|
+
// ❌ BAD: String concatenation in loops
|
|
83
|
+
var result = "";
|
|
84
|
+
foreach (var item in items)
|
|
85
|
+
{
|
|
86
|
+
result += item.ToString() + ","; // Creates new string each iteration
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// ✅ GOOD: StringBuilder
|
|
90
|
+
var sb = new StringBuilder();
|
|
91
|
+
foreach (var item in items)
|
|
92
|
+
{
|
|
93
|
+
sb.Append(item.ToString()).Append(',');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ❌ BAD: Large object allocations
|
|
97
|
+
var hugeArray = new byte[100_000_000]; // Goes to LOH
|
|
98
|
+
|
|
99
|
+
// ✅ GOOD: ArrayPool for large arrays
|
|
100
|
+
var array = ArrayPool<byte>.Shared.Rent(100_000_000);
|
|
101
|
+
try { /* use array */ }
|
|
102
|
+
finally { ArrayPool<byte>.Shared.Return(array); }
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 4. Exception Handling
|
|
106
|
+
|
|
107
|
+
**Anti-patterns:**
|
|
108
|
+
|
|
109
|
+
```csharp
|
|
110
|
+
// ❌ BAD: Empty catch
|
|
111
|
+
try { DoSomething(); }
|
|
112
|
+
catch { } // Swallowing exceptions!
|
|
113
|
+
|
|
114
|
+
// ❌ BAD: Catching Exception
|
|
115
|
+
try { DoSomething(); }
|
|
116
|
+
catch (Exception ex) { Log(ex); } // Too broad
|
|
117
|
+
|
|
118
|
+
// ✅ GOOD: Specific exceptions
|
|
119
|
+
try { DoSomething(); }
|
|
120
|
+
catch (OrderNotFoundException ex)
|
|
121
|
+
{
|
|
122
|
+
_logger.LogWarning(ex, "Order not found");
|
|
123
|
+
throw; // Re-throw domain exceptions
|
|
124
|
+
}
|
|
125
|
+
catch (DbUpdateException ex)
|
|
126
|
+
{
|
|
127
|
+
_logger.LogError(ex, "Database error");
|
|
128
|
+
throw new InfrastructureException("Failed to save", ex);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// ❌ BAD: throw ex (loses stack trace)
|
|
132
|
+
catch (Exception ex)
|
|
133
|
+
{
|
|
134
|
+
Log(ex);
|
|
135
|
+
throw ex; // Stack trace lost!
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// ✅ GOOD: throw (preserves stack trace)
|
|
139
|
+
catch (Exception ex)
|
|
140
|
+
{
|
|
141
|
+
Log(ex);
|
|
142
|
+
throw; // Stack trace preserved
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### 5. Null Safety
|
|
147
|
+
|
|
148
|
+
**Check nullable reference types:**
|
|
149
|
+
|
|
150
|
+
```csharp
|
|
151
|
+
// ❌ BAD: Nullable warnings ignored
|
|
152
|
+
public Order GetOrder(Guid id)
|
|
153
|
+
{
|
|
154
|
+
return _orders.FirstOrDefault(o => o.Id == id); // May return null!
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// ✅ GOOD: Explicit nullability
|
|
158
|
+
public Order? GetOrder(Guid id)
|
|
159
|
+
{
|
|
160
|
+
return _orders.FirstOrDefault(o => o.Id == id);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// ✅ GOOD: Throw on null
|
|
164
|
+
public Order GetRequiredOrder(Guid id)
|
|
165
|
+
{
|
|
166
|
+
return _orders.FirstOrDefault(o => o.Id == id)
|
|
167
|
+
?? throw new OrderNotFoundException(id);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ❌ BAD: Null reference potential
|
|
171
|
+
var name = customer.Address.City; // Address could be null!
|
|
172
|
+
|
|
173
|
+
// ✅ GOOD: Null-conditional
|
|
174
|
+
var name = customer.Address?.City ?? "Unknown";
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### 6. Disposable Resources
|
|
178
|
+
|
|
179
|
+
```csharp
|
|
180
|
+
// ❌ BAD: Not disposing
|
|
181
|
+
var client = new HttpClient();
|
|
182
|
+
var result = await client.GetAsync(url);
|
|
183
|
+
// HttpClient never disposed!
|
|
184
|
+
|
|
185
|
+
// ✅ GOOD: Using statement
|
|
186
|
+
using var client = new HttpClient();
|
|
187
|
+
var result = await client.GetAsync(url);
|
|
188
|
+
|
|
189
|
+
// ✅ BETTER: IHttpClientFactory (for HttpClient)
|
|
190
|
+
public class OrderService
|
|
191
|
+
{
|
|
192
|
+
private readonly HttpClient _httpClient;
|
|
193
|
+
|
|
194
|
+
public OrderService(IHttpClientFactory factory)
|
|
195
|
+
{
|
|
196
|
+
_httpClient = factory.CreateClient("OrderApi");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### 7. Thread Safety
|
|
202
|
+
|
|
203
|
+
```csharp
|
|
204
|
+
// ❌ BAD: Shared mutable state
|
|
205
|
+
public class OrderCounter
|
|
206
|
+
{
|
|
207
|
+
private int _count;
|
|
208
|
+
|
|
209
|
+
public void Increment() => _count++; // Not thread-safe!
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// ✅ GOOD: Interlocked
|
|
213
|
+
public class OrderCounter
|
|
214
|
+
{
|
|
215
|
+
private int _count;
|
|
216
|
+
|
|
217
|
+
public void Increment() => Interlocked.Increment(ref _count);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ❌ BAD: Non-thread-safe collection
|
|
221
|
+
private List<Order> _orders = new();
|
|
222
|
+
|
|
223
|
+
public void Add(Order order) => _orders.Add(order); // Not thread-safe!
|
|
224
|
+
|
|
225
|
+
// ✅ GOOD: Concurrent collection
|
|
226
|
+
private ConcurrentBag<Order> _orders = new();
|
|
227
|
+
|
|
228
|
+
public void Add(Order order) => _orders.Add(order);
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Output Format
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
══════════════════════════════════════════════════════════════
|
|
235
|
+
CODE QUALITY ANALYSIS REPORT
|
|
236
|
+
══════════════════════════════════════════════════════════════
|
|
237
|
+
|
|
238
|
+
Project: {ProjectName}
|
|
239
|
+
Files Analyzed: {Count}
|
|
240
|
+
Analysis Date: {Date}
|
|
241
|
+
|
|
242
|
+
──────────────────────────────────────────────────────────────
|
|
243
|
+
ASYNC/AWAIT PATTERNS
|
|
244
|
+
──────────────────────────────────────────────────────────────
|
|
245
|
+
|
|
246
|
+
Issues Found: 3
|
|
247
|
+
|
|
248
|
+
[CRITICAL] Blocking call detected
|
|
249
|
+
File: OrderService.cs:45
|
|
250
|
+
Code: var result = GetOrderAsync().Result;
|
|
251
|
+
Fix: Replace with 'await GetOrderAsync()'
|
|
252
|
+
|
|
253
|
+
[HIGH] Missing CancellationToken
|
|
254
|
+
File: OrderRepository.cs:23
|
|
255
|
+
Fix: Add CancellationToken parameter
|
|
256
|
+
|
|
257
|
+
[MEDIUM] async void method
|
|
258
|
+
File: EventHandler.cs:12
|
|
259
|
+
Fix: Change to async Task (unless event handler)
|
|
260
|
+
|
|
261
|
+
──────────────────────────────────────────────────────────────
|
|
262
|
+
LINQ PERFORMANCE
|
|
263
|
+
──────────────────────────────────────────────────────────────
|
|
264
|
+
|
|
265
|
+
Issues Found: 2
|
|
266
|
+
|
|
267
|
+
[HIGH] N+1 Query detected
|
|
268
|
+
File: OrderController.cs:34-42
|
|
269
|
+
Fix: Use Include() for eager loading
|
|
270
|
+
|
|
271
|
+
[MEDIUM] Multiple enumeration
|
|
272
|
+
File: ReportService.cs:56
|
|
273
|
+
Fix: Materialize with ToList() before reuse
|
|
274
|
+
|
|
275
|
+
──────────────────────────────────────────────────────────────
|
|
276
|
+
MEMORY MANAGEMENT
|
|
277
|
+
──────────────────────────────────────────────────────────────
|
|
278
|
+
|
|
279
|
+
Issues Found: 1
|
|
280
|
+
|
|
281
|
+
[MEDIUM] String concatenation in loop
|
|
282
|
+
File: ExportService.cs:78
|
|
283
|
+
Fix: Use StringBuilder instead
|
|
284
|
+
|
|
285
|
+
──────────────────────────────────────────────────────────────
|
|
286
|
+
EXCEPTION HANDLING
|
|
287
|
+
──────────────────────────────────────────────────────────────
|
|
288
|
+
|
|
289
|
+
Issues Found: 2
|
|
290
|
+
|
|
291
|
+
[CRITICAL] Empty catch block
|
|
292
|
+
File: PaymentService.cs:92
|
|
293
|
+
Fix: Log exception and handle appropriately
|
|
294
|
+
|
|
295
|
+
[HIGH] Catching generic Exception
|
|
296
|
+
File: OrderProcessor.cs:67
|
|
297
|
+
Fix: Catch specific exception types
|
|
298
|
+
|
|
299
|
+
──────────────────────────────────────────────────────────────
|
|
300
|
+
NULL SAFETY
|
|
301
|
+
──────────────────────────────────────────────────────────────
|
|
302
|
+
|
|
303
|
+
Issues Found: 4
|
|
304
|
+
|
|
305
|
+
[HIGH] Possible null reference
|
|
306
|
+
File: CustomerService.cs:34
|
|
307
|
+
Fix: Add null check or use null-conditional operator
|
|
308
|
+
|
|
309
|
+
──────────────────────────────────────────────────────────────
|
|
310
|
+
DISPOSABLE RESOURCES
|
|
311
|
+
──────────────────────────────────────────────────────────────
|
|
312
|
+
|
|
313
|
+
Issues Found: 1
|
|
314
|
+
|
|
315
|
+
[MEDIUM] HttpClient not disposed
|
|
316
|
+
File: ExternalApiClient.cs:23
|
|
317
|
+
Fix: Use IHttpClientFactory or using statement
|
|
318
|
+
|
|
319
|
+
──────────────────────────────────────────────────────────────
|
|
320
|
+
THREAD SAFETY
|
|
321
|
+
──────────────────────────────────────────────────────────────
|
|
322
|
+
|
|
323
|
+
Issues Found: 0
|
|
324
|
+
|
|
325
|
+
[✓] No thread safety issues detected
|
|
326
|
+
|
|
327
|
+
══════════════════════════════════════════════════════════════
|
|
328
|
+
SUMMARY
|
|
329
|
+
══════════════════════════════════════════════════════════════
|
|
330
|
+
|
|
331
|
+
Total Issues: 13
|
|
332
|
+
Critical: 2
|
|
333
|
+
High: 5
|
|
334
|
+
Medium: 6
|
|
335
|
+
Low: 0
|
|
336
|
+
|
|
337
|
+
Code Quality Score: 72/100
|
|
338
|
+
|
|
339
|
+
Priority Actions:
|
|
340
|
+
1. Fix blocking calls in OrderService.cs
|
|
341
|
+
2. Remove empty catch in PaymentService.cs
|
|
342
|
+
3. Fix N+1 query in OrderController.cs
|
|
343
|
+
4. Add null checks in CustomerService.cs
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## Scoring Criteria
|
|
347
|
+
|
|
348
|
+
| Severity | Weight | Impact |
|
|
349
|
+
|----------|--------|--------|
|
|
350
|
+
| Critical | -15 pts | Deadlocks, data loss risk |
|
|
351
|
+
| High | -10 pts | Performance, reliability |
|
|
352
|
+
| Medium | -5 pts | Maintainability |
|
|
353
|
+
| Low | -2 pts | Code style |
|
|
354
|
+
|
|
355
|
+
Base score: 100, deduct per issue found.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Verify C#/.NET project compliance with Clean Architecture and coding standards
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# C#/.NET Compliance Check
|
|
6
|
+
|
|
7
|
+
You are a C#/.NET compliance expert. Analyze the project to verify adherence to Clean Architecture principles and modern .NET best practices.
|
|
8
|
+
|
|
9
|
+
## Analysis Scope
|
|
10
|
+
|
|
11
|
+
### 1. Architecture Compliance
|
|
12
|
+
|
|
13
|
+
Check layer separation and dependencies:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Expected Structure:
|
|
17
|
+
src/
|
|
18
|
+
├── Domain/ → NO external dependencies
|
|
19
|
+
├── Application/ → Only depends on Domain
|
|
20
|
+
├── Infrastructure/ → Implements Domain/Application interfaces
|
|
21
|
+
└── WebAPI/ → Presentation layer
|
|
22
|
+
|
|
23
|
+
Dependency Rule: Dependencies MUST flow inward only
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Verify:**
|
|
27
|
+
- [ ] Domain has no references to Infrastructure or Application
|
|
28
|
+
- [ ] Application only references Domain
|
|
29
|
+
- [ ] Infrastructure implements interfaces from Domain/Application
|
|
30
|
+
- [ ] No circular dependencies between projects
|
|
31
|
+
|
|
32
|
+
### 2. Clean Architecture Patterns
|
|
33
|
+
|
|
34
|
+
**Domain Layer:**
|
|
35
|
+
- [ ] Entities have private setters
|
|
36
|
+
- [ ] Value Objects are immutable
|
|
37
|
+
- [ ] Aggregate roots are identified
|
|
38
|
+
- [ ] Domain events are used for side effects
|
|
39
|
+
- [ ] Repository interfaces defined in Domain
|
|
40
|
+
|
|
41
|
+
**Application Layer:**
|
|
42
|
+
- [ ] CQRS pattern implemented (Commands/Queries)
|
|
43
|
+
- [ ] MediatR used for decoupling
|
|
44
|
+
- [ ] FluentValidation for input validation
|
|
45
|
+
- [ ] DTOs used for data transfer
|
|
46
|
+
- [ ] No direct entity exposure to API
|
|
47
|
+
|
|
48
|
+
**Infrastructure Layer:**
|
|
49
|
+
- [ ] EF Core configurations in separate files
|
|
50
|
+
- [ ] Repository pattern implementations
|
|
51
|
+
- [ ] External service implementations
|
|
52
|
+
|
|
53
|
+
### 3. Modern C# Features
|
|
54
|
+
|
|
55
|
+
**Check usage of:**
|
|
56
|
+
- [ ] File-scoped namespaces
|
|
57
|
+
- [ ] Primary constructors (where appropriate)
|
|
58
|
+
- [ ] Records for DTOs
|
|
59
|
+
- [ ] Pattern matching
|
|
60
|
+
- [ ] Nullable reference types enabled
|
|
61
|
+
- [ ] Collection expressions (C# 12)
|
|
62
|
+
|
|
63
|
+
### 4. Coding Standards
|
|
64
|
+
|
|
65
|
+
**Naming Conventions:**
|
|
66
|
+
- [ ] PascalCase for public members
|
|
67
|
+
- [ ] _camelCase for private fields
|
|
68
|
+
- [ ] Async suffix on async methods
|
|
69
|
+
- [ ] I prefix for interfaces
|
|
70
|
+
|
|
71
|
+
**Code Quality:**
|
|
72
|
+
- [ ] No unused using directives
|
|
73
|
+
- [ ] No empty catch blocks
|
|
74
|
+
- [ ] Proper async/await usage (no .Result or .Wait())
|
|
75
|
+
- [ ] CancellationToken passed to async methods
|
|
76
|
+
|
|
77
|
+
## Output Format
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
══════════════════════════════════════════════════════════════
|
|
81
|
+
C#/.NET COMPLIANCE REPORT
|
|
82
|
+
══════════════════════════════════════════════════════════════
|
|
83
|
+
|
|
84
|
+
Project: {ProjectName}
|
|
85
|
+
Framework: .NET {Version}
|
|
86
|
+
Analysis Date: {Date}
|
|
87
|
+
|
|
88
|
+
──────────────────────────────────────────────────────────────
|
|
89
|
+
ARCHITECTURE COMPLIANCE
|
|
90
|
+
──────────────────────────────────────────────────────────────
|
|
91
|
+
|
|
92
|
+
Layer Separation:
|
|
93
|
+
[✓] Domain has no external dependencies
|
|
94
|
+
[✓] Application only references Domain
|
|
95
|
+
[✗] Infrastructure references Application directly
|
|
96
|
+
→ Issue: OrderRepository.cs:15 - direct DbContext usage
|
|
97
|
+
|
|
98
|
+
Dependency Flow:
|
|
99
|
+
[✓] No circular dependencies detected
|
|
100
|
+
|
|
101
|
+
Score: 75/100
|
|
102
|
+
|
|
103
|
+
──────────────────────────────────────────────────────────────
|
|
104
|
+
CLEAN ARCHITECTURE PATTERNS
|
|
105
|
+
──────────────────────────────────────────────────────────────
|
|
106
|
+
|
|
107
|
+
Domain Layer:
|
|
108
|
+
[✓] Entities use private setters
|
|
109
|
+
[✓] Value Objects are immutable
|
|
110
|
+
[✗] Missing aggregate root markers
|
|
111
|
+
→ Order.cs should implement IAggregateRoot
|
|
112
|
+
|
|
113
|
+
Application Layer:
|
|
114
|
+
[✓] CQRS pattern implemented
|
|
115
|
+
[✓] MediatR configured
|
|
116
|
+
[✗] Validation missing on CreateOrderCommand
|
|
117
|
+
→ Add CreateOrderCommandValidator
|
|
118
|
+
|
|
119
|
+
Score: 80/100
|
|
120
|
+
|
|
121
|
+
──────────────────────────────────────────────────────────────
|
|
122
|
+
MODERN C# FEATURES
|
|
123
|
+
──────────────────────────────────────────────────────────────
|
|
124
|
+
|
|
125
|
+
[✓] File-scoped namespaces used
|
|
126
|
+
[✓] Nullable reference types enabled
|
|
127
|
+
[✗] Records not used for DTOs
|
|
128
|
+
→ OrderDto.cs - consider converting to record
|
|
129
|
+
[✗] Pattern matching underutilized
|
|
130
|
+
→ OrderService.cs:45 - use switch expression
|
|
131
|
+
|
|
132
|
+
Score: 70/100
|
|
133
|
+
|
|
134
|
+
──────────────────────────────────────────────────────────────
|
|
135
|
+
CODING STANDARDS
|
|
136
|
+
──────────────────────────────────────────────────────────────
|
|
137
|
+
|
|
138
|
+
Naming:
|
|
139
|
+
[✓] PascalCase for public members
|
|
140
|
+
[✓] Private fields use _camelCase prefix
|
|
141
|
+
[✗] Async method missing Async suffix
|
|
142
|
+
→ OrderService.cs: GetOrder → GetOrderAsync
|
|
143
|
+
|
|
144
|
+
Code Quality:
|
|
145
|
+
[✓] No empty catch blocks
|
|
146
|
+
[✗] Blocking call detected
|
|
147
|
+
→ Program.cs:23 - Replace .Result with await
|
|
148
|
+
|
|
149
|
+
Score: 85/100
|
|
150
|
+
|
|
151
|
+
══════════════════════════════════════════════════════════════
|
|
152
|
+
OVERALL COMPLIANCE SCORE: 77/100
|
|
153
|
+
══════════════════════════════════════════════════════════════
|
|
154
|
+
|
|
155
|
+
Priority Fixes:
|
|
156
|
+
1. [HIGH] Remove blocking calls (.Result/.Wait())
|
|
157
|
+
2. [HIGH] Add missing validators
|
|
158
|
+
3. [MEDIUM] Convert DTOs to records
|
|
159
|
+
4. [MEDIUM] Mark aggregate roots with IAggregateRoot
|
|
160
|
+
5. [LOW] Rename async methods with Async suffix
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Scoring Criteria
|
|
164
|
+
|
|
165
|
+
| Category | Weight | Criteria |
|
|
166
|
+
|----------|--------|----------|
|
|
167
|
+
| Architecture | 30% | Layer separation, dependency flow |
|
|
168
|
+
| Clean Architecture | 25% | CQRS, DDD patterns, validation |
|
|
169
|
+
| Modern C# | 20% | Latest language features |
|
|
170
|
+
| Coding Standards | 25% | Naming, async patterns, quality |
|
|
171
|
+
|
|
172
|
+
## Actions
|
|
173
|
+
|
|
174
|
+
After analysis:
|
|
175
|
+
1. List all compliance issues found
|
|
176
|
+
2. Prioritize by severity (HIGH/MEDIUM/LOW)
|
|
177
|
+
3. Provide specific fix recommendations with code examples
|
|
178
|
+
4. Calculate overall compliance score
|