@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,591 @@
|
|
|
1
|
+
# Laravel Quality Tools
|
|
2
|
+
|
|
3
|
+
## Static Analysis
|
|
4
|
+
|
|
5
|
+
### PHPStan/Larastan Configuration
|
|
6
|
+
|
|
7
|
+
```neon
|
|
8
|
+
# phpstan.neon
|
|
9
|
+
includes:
|
|
10
|
+
- vendor/larastan/larastan/extension.neon
|
|
11
|
+
|
|
12
|
+
parameters:
|
|
13
|
+
paths:
|
|
14
|
+
- app
|
|
15
|
+
- database
|
|
16
|
+
- tests
|
|
17
|
+
|
|
18
|
+
level: 8
|
|
19
|
+
|
|
20
|
+
ignoreErrors:
|
|
21
|
+
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder#'
|
|
22
|
+
- '#Call to an undefined method Illuminate\\Database\\Query\\Builder#'
|
|
23
|
+
|
|
24
|
+
excludePaths:
|
|
25
|
+
- app/Console/Kernel.php
|
|
26
|
+
- app/Http/Kernel.php
|
|
27
|
+
|
|
28
|
+
checkMissingIterableValueType: false
|
|
29
|
+
checkGenericClassInNonGenericObjectType: false
|
|
30
|
+
treatPhpDocTypesAsCertain: false
|
|
31
|
+
reportUnmatchedIgnoredErrors: false
|
|
32
|
+
|
|
33
|
+
# Laravel specific
|
|
34
|
+
checkOctaneCompatibility: true
|
|
35
|
+
noUnnecessaryCollectionCall: true
|
|
36
|
+
checkModelProperties: true
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Running Static Analysis
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Run PHPStan
|
|
43
|
+
./vendor/bin/phpstan analyse
|
|
44
|
+
|
|
45
|
+
# Run with specific level
|
|
46
|
+
./vendor/bin/phpstan analyse --level=8
|
|
47
|
+
|
|
48
|
+
# Generate baseline for legacy projects
|
|
49
|
+
./vendor/bin/phpstan analyse --generate-baseline
|
|
50
|
+
|
|
51
|
+
# Clear cache
|
|
52
|
+
./vendor/bin/phpstan clear-result-cache
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Code Formatting
|
|
56
|
+
|
|
57
|
+
### Laravel Pint (PSR-12 + Laravel Style)
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
// pint.json
|
|
61
|
+
{
|
|
62
|
+
"preset": "laravel",
|
|
63
|
+
"rules": {
|
|
64
|
+
"blank_line_before_statement": {
|
|
65
|
+
"statements": ["return", "throw", "try", "if", "foreach", "while"]
|
|
66
|
+
},
|
|
67
|
+
"array_indentation": true,
|
|
68
|
+
"array_syntax": {"syntax": "short"},
|
|
69
|
+
"binary_operator_spaces": {
|
|
70
|
+
"default": "single_space"
|
|
71
|
+
},
|
|
72
|
+
"class_attributes_separation": {
|
|
73
|
+
"elements": {
|
|
74
|
+
"const": "one",
|
|
75
|
+
"method": "one",
|
|
76
|
+
"property": "one",
|
|
77
|
+
"trait_import": "none"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"concat_space": {"spacing": "one"},
|
|
81
|
+
"declare_strict_types": true,
|
|
82
|
+
"final_class": false,
|
|
83
|
+
"global_namespace_import": {
|
|
84
|
+
"import_classes": true,
|
|
85
|
+
"import_constants": true,
|
|
86
|
+
"import_functions": true
|
|
87
|
+
},
|
|
88
|
+
"method_argument_space": {
|
|
89
|
+
"on_multiline": "ensure_fully_multiline",
|
|
90
|
+
"keep_multiple_spaces_after_comma": false
|
|
91
|
+
},
|
|
92
|
+
"multiline_whitespace_before_semicolons": {
|
|
93
|
+
"strategy": "no_multi_line"
|
|
94
|
+
},
|
|
95
|
+
"no_unused_imports": true,
|
|
96
|
+
"not_operator_with_successor_space": true,
|
|
97
|
+
"ordered_imports": {
|
|
98
|
+
"sort_algorithm": "alpha",
|
|
99
|
+
"imports_order": ["const", "class", "function"]
|
|
100
|
+
},
|
|
101
|
+
"php_unit_method_casing": {"case": "snake_case"},
|
|
102
|
+
"single_quote": true,
|
|
103
|
+
"trailing_comma_in_multiline": {
|
|
104
|
+
"elements": ["arrays", "arguments", "parameters"]
|
|
105
|
+
},
|
|
106
|
+
"void_return": true
|
|
107
|
+
},
|
|
108
|
+
"exclude": [
|
|
109
|
+
"bootstrap",
|
|
110
|
+
"storage",
|
|
111
|
+
"vendor",
|
|
112
|
+
"node_modules"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Running Pint
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Format all files
|
|
121
|
+
./vendor/bin/pint
|
|
122
|
+
|
|
123
|
+
# Check without fixing (CI mode)
|
|
124
|
+
./vendor/bin/pint --test
|
|
125
|
+
|
|
126
|
+
# Format specific directory
|
|
127
|
+
./vendor/bin/pint app/Models
|
|
128
|
+
|
|
129
|
+
# Format with verbose output
|
|
130
|
+
./vendor/bin/pint -v
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Code Coverage
|
|
134
|
+
|
|
135
|
+
### PHPUnit/Pest Coverage Configuration
|
|
136
|
+
|
|
137
|
+
```xml
|
|
138
|
+
<!-- phpunit.xml -->
|
|
139
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
140
|
+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
141
|
+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
|
142
|
+
bootstrap="vendor/autoload.php"
|
|
143
|
+
colors="true"
|
|
144
|
+
cacheDirectory=".phpunit.cache"
|
|
145
|
+
executionOrder="depends,defects"
|
|
146
|
+
failOnRisky="true"
|
|
147
|
+
failOnWarning="true"
|
|
148
|
+
requireCoverageMetadata="false"
|
|
149
|
+
beStrictAboutOutputDuringTests="true">
|
|
150
|
+
<testsuites>
|
|
151
|
+
<testsuite name="Unit">
|
|
152
|
+
<directory>tests/Unit</directory>
|
|
153
|
+
</testsuite>
|
|
154
|
+
<testsuite name="Feature">
|
|
155
|
+
<directory>tests/Feature</directory>
|
|
156
|
+
</testsuite>
|
|
157
|
+
<testsuite name="Architecture">
|
|
158
|
+
<directory>tests/Architecture</directory>
|
|
159
|
+
</testsuite>
|
|
160
|
+
</testsuites>
|
|
161
|
+
<source>
|
|
162
|
+
<include>
|
|
163
|
+
<directory>app</directory>
|
|
164
|
+
</include>
|
|
165
|
+
<exclude>
|
|
166
|
+
<directory>app/Console</directory>
|
|
167
|
+
<directory>app/Exceptions</directory>
|
|
168
|
+
<directory>app/Http/Middleware</directory>
|
|
169
|
+
<directory>app/Providers</directory>
|
|
170
|
+
</exclude>
|
|
171
|
+
</source>
|
|
172
|
+
<coverage>
|
|
173
|
+
<report>
|
|
174
|
+
<clover outputFile="coverage/clover.xml"/>
|
|
175
|
+
<html outputDirectory="coverage/html"/>
|
|
176
|
+
<text outputFile="coverage/coverage.txt"/>
|
|
177
|
+
</report>
|
|
178
|
+
</coverage>
|
|
179
|
+
<php>
|
|
180
|
+
<env name="APP_ENV" value="testing"/>
|
|
181
|
+
<env name="BCRYPT_ROUNDS" value="4"/>
|
|
182
|
+
<env name="CACHE_DRIVER" value="array"/>
|
|
183
|
+
<env name="DB_CONNECTION" value="sqlite"/>
|
|
184
|
+
<env name="DB_DATABASE" value=":memory:"/>
|
|
185
|
+
<env name="MAIL_MAILER" value="array"/>
|
|
186
|
+
<env name="QUEUE_CONNECTION" value="sync"/>
|
|
187
|
+
<env name="SESSION_DRIVER" value="array"/>
|
|
188
|
+
<env name="TELESCOPE_ENABLED" value="false"/>
|
|
189
|
+
</php>
|
|
190
|
+
</phpunit>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Running Coverage
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Run tests with coverage
|
|
197
|
+
php artisan test --coverage
|
|
198
|
+
|
|
199
|
+
# Minimum coverage threshold
|
|
200
|
+
php artisan test --coverage --min=80
|
|
201
|
+
|
|
202
|
+
# Generate HTML report
|
|
203
|
+
XDEBUG_MODE=coverage php artisan test --coverage-html=coverage/html
|
|
204
|
+
|
|
205
|
+
# Generate Clover XML (for CI)
|
|
206
|
+
XDEBUG_MODE=coverage php artisan test --coverage-clover=coverage/clover.xml
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Rector (Automated Refactoring)
|
|
210
|
+
|
|
211
|
+
### Configuration
|
|
212
|
+
|
|
213
|
+
```php
|
|
214
|
+
<?php
|
|
215
|
+
// rector.php
|
|
216
|
+
|
|
217
|
+
declare(strict_types=1);
|
|
218
|
+
|
|
219
|
+
use Rector\Config\RectorConfig;
|
|
220
|
+
use Rector\Set\ValueObject\LevelSetList;
|
|
221
|
+
use Rector\Laravel\Set\LaravelSetList;
|
|
222
|
+
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRector;
|
|
223
|
+
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector;
|
|
224
|
+
|
|
225
|
+
return RectorConfig::configure()
|
|
226
|
+
->withPaths([
|
|
227
|
+
__DIR__ . '/app',
|
|
228
|
+
__DIR__ . '/database',
|
|
229
|
+
__DIR__ . '/tests',
|
|
230
|
+
])
|
|
231
|
+
->withSkip([
|
|
232
|
+
__DIR__ . '/app/Console/Kernel.php',
|
|
233
|
+
__DIR__ . '/app/Http/Kernel.php',
|
|
234
|
+
])
|
|
235
|
+
->withSets([
|
|
236
|
+
LevelSetList::UP_TO_PHP_83,
|
|
237
|
+
LaravelSetList::LARAVEL_110,
|
|
238
|
+
LaravelSetList::LARAVEL_CODE_QUALITY,
|
|
239
|
+
LaravelSetList::LARAVEL_FACADE_ALIASES_TO_FULL_NAMES,
|
|
240
|
+
])
|
|
241
|
+
->withPreparedSets(
|
|
242
|
+
deadCode: true,
|
|
243
|
+
codeQuality: true,
|
|
244
|
+
typeDeclarations: true,
|
|
245
|
+
privatization: true,
|
|
246
|
+
earlyReturn: true,
|
|
247
|
+
strictBooleans: true,
|
|
248
|
+
)
|
|
249
|
+
->withRules([
|
|
250
|
+
ReturnTypeFromStrictNativeCallRector::class,
|
|
251
|
+
ReturnTypeFromStrictTypedPropertyRector::class,
|
|
252
|
+
]);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Running Rector
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# Preview changes
|
|
259
|
+
./vendor/bin/rector process --dry-run
|
|
260
|
+
|
|
261
|
+
# Apply changes
|
|
262
|
+
./vendor/bin/rector process
|
|
263
|
+
|
|
264
|
+
# Process specific directory
|
|
265
|
+
./vendor/bin/rector process app/Models
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## CI/CD Integration
|
|
269
|
+
|
|
270
|
+
### GitHub Actions Workflow
|
|
271
|
+
|
|
272
|
+
```yaml
|
|
273
|
+
# .github/workflows/quality.yml
|
|
274
|
+
name: Code Quality
|
|
275
|
+
|
|
276
|
+
on:
|
|
277
|
+
push:
|
|
278
|
+
branches: [main, develop]
|
|
279
|
+
pull_request:
|
|
280
|
+
branches: [main]
|
|
281
|
+
|
|
282
|
+
jobs:
|
|
283
|
+
quality:
|
|
284
|
+
runs-on: ubuntu-latest
|
|
285
|
+
|
|
286
|
+
steps:
|
|
287
|
+
- uses: actions/checkout@v4
|
|
288
|
+
|
|
289
|
+
- name: Setup PHP
|
|
290
|
+
uses: shivammathur/setup-php@v2
|
|
291
|
+
with:
|
|
292
|
+
php-version: '8.3'
|
|
293
|
+
extensions: mbstring, dom, pdo, pgsql, redis, xdebug
|
|
294
|
+
coverage: xdebug
|
|
295
|
+
|
|
296
|
+
- name: Cache Composer
|
|
297
|
+
uses: actions/cache@v4
|
|
298
|
+
with:
|
|
299
|
+
path: vendor
|
|
300
|
+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
|
301
|
+
restore-keys: |
|
|
302
|
+
${{ runner.os }}-composer-
|
|
303
|
+
|
|
304
|
+
- name: Install Dependencies
|
|
305
|
+
run: composer install --prefer-dist --no-progress
|
|
306
|
+
|
|
307
|
+
- name: Check Code Style
|
|
308
|
+
run: ./vendor/bin/pint --test
|
|
309
|
+
|
|
310
|
+
- name: Static Analysis
|
|
311
|
+
run: ./vendor/bin/phpstan analyse --error-format=github
|
|
312
|
+
|
|
313
|
+
- name: Run Tests
|
|
314
|
+
run: php artisan test --parallel --coverage-clover=coverage.xml
|
|
315
|
+
env:
|
|
316
|
+
DB_CONNECTION: sqlite
|
|
317
|
+
DB_DATABASE: ':memory:'
|
|
318
|
+
|
|
319
|
+
- name: Upload Coverage to Codecov
|
|
320
|
+
uses: codecov/codecov-action@v4
|
|
321
|
+
with:
|
|
322
|
+
files: coverage.xml
|
|
323
|
+
fail_ci_if_error: false
|
|
324
|
+
|
|
325
|
+
security:
|
|
326
|
+
runs-on: ubuntu-latest
|
|
327
|
+
|
|
328
|
+
steps:
|
|
329
|
+
- uses: actions/checkout@v4
|
|
330
|
+
|
|
331
|
+
- name: Security Check
|
|
332
|
+
run: composer audit
|
|
333
|
+
|
|
334
|
+
- name: Check for Vulnerabilities
|
|
335
|
+
uses: symfonycorp/security-checker-action@v5
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### GitLab CI Configuration
|
|
339
|
+
|
|
340
|
+
```yaml
|
|
341
|
+
# .gitlab-ci.yml
|
|
342
|
+
stages:
|
|
343
|
+
- quality
|
|
344
|
+
- test
|
|
345
|
+
- security
|
|
346
|
+
|
|
347
|
+
variables:
|
|
348
|
+
PHP_VERSION: "8.3"
|
|
349
|
+
COMPOSER_HOME: "$CI_PROJECT_DIR/.composer"
|
|
350
|
+
|
|
351
|
+
cache:
|
|
352
|
+
paths:
|
|
353
|
+
- vendor/
|
|
354
|
+
- .composer/
|
|
355
|
+
|
|
356
|
+
code-style:
|
|
357
|
+
stage: quality
|
|
358
|
+
image: php:${PHP_VERSION}-cli
|
|
359
|
+
before_script:
|
|
360
|
+
- apt-get update && apt-get install -y git unzip
|
|
361
|
+
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
362
|
+
- composer install --prefer-dist --no-progress
|
|
363
|
+
script:
|
|
364
|
+
- ./vendor/bin/pint --test
|
|
365
|
+
rules:
|
|
366
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
367
|
+
|
|
368
|
+
static-analysis:
|
|
369
|
+
stage: quality
|
|
370
|
+
image: php:${PHP_VERSION}-cli
|
|
371
|
+
before_script:
|
|
372
|
+
- apt-get update && apt-get install -y git unzip
|
|
373
|
+
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
374
|
+
- composer install --prefer-dist --no-progress
|
|
375
|
+
script:
|
|
376
|
+
- ./vendor/bin/phpstan analyse
|
|
377
|
+
rules:
|
|
378
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
379
|
+
|
|
380
|
+
tests:
|
|
381
|
+
stage: test
|
|
382
|
+
image: php:${PHP_VERSION}-cli
|
|
383
|
+
services:
|
|
384
|
+
- postgres:16
|
|
385
|
+
- redis:7
|
|
386
|
+
variables:
|
|
387
|
+
DB_CONNECTION: pgsql
|
|
388
|
+
DB_HOST: postgres
|
|
389
|
+
DB_DATABASE: testing
|
|
390
|
+
DB_USERNAME: postgres
|
|
391
|
+
DB_PASSWORD: secret
|
|
392
|
+
POSTGRES_DB: testing
|
|
393
|
+
POSTGRES_USER: postgres
|
|
394
|
+
POSTGRES_PASSWORD: secret
|
|
395
|
+
before_script:
|
|
396
|
+
- apt-get update && apt-get install -y git unzip libpq-dev
|
|
397
|
+
- docker-php-ext-install pdo pdo_pgsql
|
|
398
|
+
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
399
|
+
- composer install --prefer-dist --no-progress
|
|
400
|
+
- cp .env.example .env
|
|
401
|
+
- php artisan key:generate
|
|
402
|
+
script:
|
|
403
|
+
- php artisan test --parallel
|
|
404
|
+
coverage: '/^\s*Lines:\s*(\d+\.\d+)%/'
|
|
405
|
+
artifacts:
|
|
406
|
+
reports:
|
|
407
|
+
junit: coverage/junit.xml
|
|
408
|
+
coverage_report:
|
|
409
|
+
coverage_format: cobertura
|
|
410
|
+
path: coverage/cobertura.xml
|
|
411
|
+
|
|
412
|
+
security-audit:
|
|
413
|
+
stage: security
|
|
414
|
+
image: php:${PHP_VERSION}-cli
|
|
415
|
+
before_script:
|
|
416
|
+
- apt-get update && apt-get install -y git unzip
|
|
417
|
+
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
418
|
+
script:
|
|
419
|
+
- composer audit
|
|
420
|
+
rules:
|
|
421
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
422
|
+
- if: $CI_COMMIT_BRANCH == "main"
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
## Pre-commit Hooks
|
|
426
|
+
|
|
427
|
+
### Husky + lint-staged Configuration
|
|
428
|
+
|
|
429
|
+
```json
|
|
430
|
+
// package.json
|
|
431
|
+
{
|
|
432
|
+
"scripts": {
|
|
433
|
+
"prepare": "husky"
|
|
434
|
+
},
|
|
435
|
+
"lint-staged": {
|
|
436
|
+
"*.php": [
|
|
437
|
+
"./vendor/bin/pint"
|
|
438
|
+
],
|
|
439
|
+
"*.{js,ts,vue}": [
|
|
440
|
+
"eslint --fix",
|
|
441
|
+
"prettier --write"
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
```bash
|
|
448
|
+
# .husky/pre-commit
|
|
449
|
+
#!/usr/bin/env sh
|
|
450
|
+
. "$(dirname -- "$0")/_/husky.sh"
|
|
451
|
+
|
|
452
|
+
npx lint-staged
|
|
453
|
+
|
|
454
|
+
# Run PHP static analysis on staged files
|
|
455
|
+
./vendor/bin/phpstan analyse --no-progress
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
### Git Hooks (Alternative)
|
|
459
|
+
|
|
460
|
+
```bash
|
|
461
|
+
#!/bin/bash
|
|
462
|
+
# .git/hooks/pre-commit
|
|
463
|
+
|
|
464
|
+
# Run Pint on staged PHP files
|
|
465
|
+
STAGED_PHP_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.php$')
|
|
466
|
+
|
|
467
|
+
if [ -n "$STAGED_PHP_FILES" ]; then
|
|
468
|
+
echo "Running Laravel Pint..."
|
|
469
|
+
./vendor/bin/pint $STAGED_PHP_FILES
|
|
470
|
+
|
|
471
|
+
# Add fixed files back to staging
|
|
472
|
+
git add $STAGED_PHP_FILES
|
|
473
|
+
|
|
474
|
+
echo "Running PHPStan..."
|
|
475
|
+
./vendor/bin/phpstan analyse $STAGED_PHP_FILES --no-progress
|
|
476
|
+
|
|
477
|
+
if [ $? -ne 0 ]; then
|
|
478
|
+
echo "PHPStan found issues. Please fix them before committing."
|
|
479
|
+
exit 1
|
|
480
|
+
fi
|
|
481
|
+
fi
|
|
482
|
+
|
|
483
|
+
exit 0
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
## IDE Integration
|
|
487
|
+
|
|
488
|
+
### VS Code Settings
|
|
489
|
+
|
|
490
|
+
```json
|
|
491
|
+
// .vscode/settings.json
|
|
492
|
+
{
|
|
493
|
+
"editor.formatOnSave": true,
|
|
494
|
+
"[php]": {
|
|
495
|
+
"editor.defaultFormatter": "open-phpstorm.open-phpstorm",
|
|
496
|
+
"editor.formatOnSave": false
|
|
497
|
+
},
|
|
498
|
+
"intelephense.files.maxSize": 5000000,
|
|
499
|
+
"intelephense.environment.phpVersion": "8.3.0",
|
|
500
|
+
"phpstan.binPath": "vendor/bin/phpstan",
|
|
501
|
+
"phpstan.configFile": "phpstan.neon",
|
|
502
|
+
"phpstan.enabled": true,
|
|
503
|
+
"phpstan.analysisDelay": 1000,
|
|
504
|
+
"php-cs-fixer.executablePath": "vendor/bin/pint",
|
|
505
|
+
"php-cs-fixer.onsave": true,
|
|
506
|
+
"editor.codeActionsOnSave": {
|
|
507
|
+
"source.fixAll": "explicit"
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
### PhpStorm Settings
|
|
513
|
+
|
|
514
|
+
```xml
|
|
515
|
+
<!-- .idea/php.xml -->
|
|
516
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
517
|
+
<project version="4">
|
|
518
|
+
<component name="PhpProjectSharedConfiguration" php_language_level="8.3">
|
|
519
|
+
<option name="suggestChangeDefaultLanguageLevel" value="false" />
|
|
520
|
+
</component>
|
|
521
|
+
<component name="PhpStanOptionsConfiguration">
|
|
522
|
+
<option name="transferred" value="true" />
|
|
523
|
+
<option name="configurationFilePath" value="$PROJECT_DIR$/phpstan.neon" />
|
|
524
|
+
</component>
|
|
525
|
+
</project>
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
## Quality Metrics
|
|
529
|
+
|
|
530
|
+
### Minimum Requirements
|
|
531
|
+
|
|
532
|
+
| Metric | Threshold | Tool |
|
|
533
|
+
|--------|-----------|------|
|
|
534
|
+
| Code Coverage | ≥ 80% | PHPUnit/Pest |
|
|
535
|
+
| PHPStan Level | 8 | PHPStan |
|
|
536
|
+
| Cyclomatic Complexity | ≤ 10 | PHPStan |
|
|
537
|
+
| Method Length | ≤ 20 lines | Pint rules |
|
|
538
|
+
| Class Length | ≤ 200 lines | Review |
|
|
539
|
+
| Dependencies per Class | ≤ 5 | Architecture tests |
|
|
540
|
+
|
|
541
|
+
### Architecture Tests for Quality
|
|
542
|
+
|
|
543
|
+
```php
|
|
544
|
+
<?php
|
|
545
|
+
// tests/Architecture/QualityTest.php
|
|
546
|
+
|
|
547
|
+
arch('classes should be final or abstract')
|
|
548
|
+
->expect('App')
|
|
549
|
+
->classes()
|
|
550
|
+
->toExtendNothing()
|
|
551
|
+
->or()
|
|
552
|
+
->toBeFinal()
|
|
553
|
+
->ignoring([
|
|
554
|
+
'App\Models',
|
|
555
|
+
'App\Http\Controllers',
|
|
556
|
+
'App\Exceptions',
|
|
557
|
+
]);
|
|
558
|
+
|
|
559
|
+
arch('no debugging statements')
|
|
560
|
+
->expect(['dd', 'dump', 'ray', 'var_dump', 'print_r'])
|
|
561
|
+
->not->toBeUsed();
|
|
562
|
+
|
|
563
|
+
arch('no env() calls outside config')
|
|
564
|
+
->expect('env')
|
|
565
|
+
->not->toBeUsed()
|
|
566
|
+
->ignoring('config');
|
|
567
|
+
|
|
568
|
+
arch('strict types declared')
|
|
569
|
+
->expect('App')
|
|
570
|
+
->toUseStrictTypes();
|
|
571
|
+
|
|
572
|
+
arch('actions are final')
|
|
573
|
+
->expect('App\Actions')
|
|
574
|
+
->toBeFinal();
|
|
575
|
+
|
|
576
|
+
arch('DTOs are readonly')
|
|
577
|
+
->expect('App\DTOs')
|
|
578
|
+
->toBeReadonly();
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
## Quality Checklist
|
|
582
|
+
|
|
583
|
+
- [ ] PHPStan level 8 passing
|
|
584
|
+
- [ ] Laravel Pint passing
|
|
585
|
+
- [ ] Code coverage ≥ 80%
|
|
586
|
+
- [ ] No debugging statements
|
|
587
|
+
- [ ] Strict types declared
|
|
588
|
+
- [ ] Architecture tests passing
|
|
589
|
+
- [ ] No security vulnerabilities (composer audit)
|
|
590
|
+
- [ ] Pre-commit hooks configured
|
|
591
|
+
- [ ] CI/CD pipeline green
|