Browse Source

Refactor globs to YAML array format in rule files

Updated the 'globs' field in all .mdc rule files from a comma-separated string to a YAML array for improved readability and consistency.
pull/24754/head
berkansasmaz 1 week ago
parent
commit
9672f154ba
  1. 6
      ai-rules/common/application-layer.mdc
  2. 5
      ai-rules/common/authorization.mdc
  3. 4
      ai-rules/common/cli-commands.mdc
  4. 5
      ai-rules/common/ddd-patterns.mdc
  5. 4
      ai-rules/common/dependency-rules.mdc
  6. 10
      ai-rules/common/development-flow.mdc
  7. 7
      ai-rules/common/infrastructure.mdc
  8. 5
      ai-rules/common/multi-tenancy.mdc
  9. 5
      ai-rules/data/ef-core.mdc
  10. 5
      ai-rules/data/mongodb.mdc
  11. 6
      ai-rules/template-specific/app-nolayers.mdc
  12. 6
      ai-rules/testing/patterns.mdc
  13. 5
      ai-rules/ui/angular.mdc
  14. 5
      ai-rules/ui/blazor.mdc
  15. 6
      ai-rules/ui/mvc.mdc

6
ai-rules/common/application-layer.mdc

@ -1,6 +1,10 @@
---
description: "ABP Application Services, DTOs, validation, and error handling patterns"
globs: "**/*.Application/**/*.cs,**/Application/**/*.cs,**/*AppService*.cs,**/*Dto*.cs"
globs:
- "**/*.Application/**/*.cs"
- "**/Application/**/*.cs"
- "**/*AppService*.cs"
- "**/*Dto*.cs"
alwaysApply: false
---

5
ai-rules/common/authorization.mdc

@ -1,6 +1,9 @@
---
description: "ABP permission system and authorization patterns"
globs: "**/*Permission*.cs,**/*AppService*.cs,**/*Controller*.cs"
globs:
- "**/*Permission*.cs"
- "**/*AppService*.cs"
- "**/*Controller*.cs"
alwaysApply: false
---

4
ai-rules/common/cli-commands.mdc

@ -1,6 +1,8 @@
---
description: "ABP CLI commands: generate-proxy, install-libs, add-package-ref, new-module, install-module, update, clean, suite generate (CRUD pages)"
globs: "**/*.csproj,**/appsettings*.json"
globs:
- "**/*.csproj"
- "**/appsettings*.json"
alwaysApply: false
---

5
ai-rules/common/ddd-patterns.mdc

@ -1,6 +1,9 @@
---
description: "ABP DDD patterns - Entities, Aggregate Roots, Repositories, Domain Services"
globs: "**/*.Domain/**/*.cs,**/Domain/**/*.cs,**/Entities/**/*.cs"
globs:
- "**/*.Domain/**/*.cs"
- "**/Domain/**/*.cs"
- "**/Entities/**/*.cs"
alwaysApply: false
---

4
ai-rules/common/dependency-rules.mdc

@ -1,6 +1,8 @@
---
description: "ABP layer dependency rules and project structure guardrails"
globs: "**/*.csproj,**/*Module*.cs"
globs:
- "**/*.csproj"
- "**/*Module*.cs"
alwaysApply: false
---

10
ai-rules/common/development-flow.mdc

@ -1,6 +1,14 @@
---
description: "ABP development workflow - adding features, entities, and migrations"
globs: "**/*AppService*.cs,**/*Application*/**/*.cs,**/*Application.Contracts*/**/*.cs,**/*Dto*.cs,**/*DbContext*.cs,**/*.EntityFrameworkCore/**/*.cs,**/*.MongoDB/**/*.cs,**/*Permission*.cs"
globs:
- "**/*AppService*.cs"
- "**/*Application*/**/*.cs"
- "**/*Application.Contracts*/**/*.cs"
- "**/*Dto*.cs"
- "**/*DbContext*.cs"
- "**/*.EntityFrameworkCore/**/*.cs"
- "**/*.MongoDB/**/*.cs"
- "**/*Permission*.cs"
alwaysApply: false
---

7
ai-rules/common/infrastructure.mdc

@ -1,6 +1,11 @@
---
description: "ABP infrastructure services - Settings, Features, Caching, Events, Background Jobs"
globs: "**/*Setting*.cs,**/*Feature*.cs,**/*Cache*.cs,**/*Event*.cs,**/*Job*.cs"
globs:
- "**/*Setting*.cs"
- "**/*Feature*.cs"
- "**/*Cache*.cs"
- "**/*Event*.cs"
- "**/*Job*.cs"
alwaysApply: false
---

5
ai-rules/common/multi-tenancy.mdc

@ -1,6 +1,9 @@
---
description: "ABP Multi-Tenancy patterns - tenant-aware entities, data isolation, and tenant switching"
globs: "**/*Tenant*.cs,**/*MultiTenant*.cs,**/Entities/**/*.cs"
globs:
- "**/*Tenant*.cs"
- "**/*MultiTenant*.cs"
- "**/Entities/**/*.cs"
alwaysApply: false
---

5
ai-rules/data/ef-core.mdc

@ -1,6 +1,9 @@
---
description: "ABP Entity Framework Core patterns - DbContext, migrations, repositories"
globs: "**/*.EntityFrameworkCore/**/*.cs,**/EntityFrameworkCore/**/*.cs,**/*DbContext*.cs"
globs:
- "**/*.EntityFrameworkCore/**/*.cs"
- "**/EntityFrameworkCore/**/*.cs"
- "**/*DbContext*.cs"
alwaysApply: false
---

5
ai-rules/data/mongodb.mdc

@ -1,6 +1,9 @@
---
description: "ABP MongoDB patterns - MongoDbContext and repositories"
globs: "**/*.MongoDB/**/*.cs,**/MongoDB/**/*.cs,**/*MongoDb*.cs"
globs:
- "**/*.MongoDB/**/*.cs"
- "**/MongoDB/**/*.cs"
- "**/*MongoDb*.cs"
alwaysApply: false
---

6
ai-rules/template-specific/app-nolayers.mdc

@ -1,6 +1,10 @@
---
description: "ABP Single-Layer (No-Layers) application template specific patterns"
globs: "**/src/*/*Module.cs,**/src/*/Entities/**/*.cs,**/src/*/Services/**/*.cs,**/src/*/Data/**/*.cs"
globs:
- "**/src/*/*Module.cs"
- "**/src/*/Entities/**/*.cs"
- "**/src/*/Services/**/*.cs"
- "**/src/*/Data/**/*.cs"
alwaysApply: false
---

6
ai-rules/testing/patterns.mdc

@ -1,6 +1,10 @@
---
description: "ABP testing patterns - unit tests and integration tests"
globs: "test/**/*.cs,tests/**/*.cs,**/*Tests*/**/*.cs,**/*Test*.cs"
globs:
- "test/**/*.cs"
- "tests/**/*.cs"
- "**/*Tests*/**/*.cs"
- "**/*Test*.cs"
alwaysApply: false
---

5
ai-rules/ui/angular.mdc

@ -1,6 +1,9 @@
---
description: "ABP Angular UI patterns and best practices"
globs: "**/angular/**/*.ts,**/angular/**/*.html,**/*.component.ts"
globs:
- "**/angular/**/*.ts"
- "**/angular/**/*.html"
- "**/*.component.ts"
alwaysApply: false
---

5
ai-rules/ui/blazor.mdc

@ -1,6 +1,9 @@
---
description: "ABP Blazor UI patterns and components"
globs: "**/*.razor,**/Blazor/**/*.cs,**/*.Blazor*/**/*.cs"
globs:
- "**/*.razor"
- "**/Blazor/**/*.cs"
- "**/*.Blazor*/**/*.cs"
alwaysApply: false
---

6
ai-rules/ui/mvc.mdc

@ -1,6 +1,10 @@
---
description: "ABP MVC and Razor Pages UI patterns"
globs: "**/*.cshtml,**/Pages/**/*.cs,**/Views/**/*.cs,**/Controllers/**/*.cs"
globs:
- "**/*.cshtml"
- "**/Pages/**/*.cs"
- "**/Views/**/*.cs"
- "**/Controllers/**/*.cs"
alwaysApply: false
---

Loading…
Cancel
Save