Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
311 lines (307 loc) · 39 KB
/
Copy path.coderabbit.yaml
File metadata and controls
311 lines (307 loc) · 39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
#
# CodeRabbit configuration of the core.
# The rules live in .ai/ (root CONTEXT.md, then the Domain and Component contexts); this file sets how
# CodeRabbit runs and which context applies to which files: it changes when a context is added or its Layers
# table moves, never when a rule does.
# Reference: https://docs.coderabbit.ai/reference/configuration
language: en-US
tone_instructions: >-
Direct, no praise. One finding per comment, naming the .ai/ rule it breaks, with the severity and format of
.ai/REVIEW.md ("Severity and comment format"); skip what its "Do not flag" section lists.
reviews:
profile: chill
# Never blocks nor approves the merge: no "Request changes", no automatic approval, no pre-merge check
# (pre_merge_checks below), and an author cannot get an approval from CodeRabbit on their own pull
# request (@coderabbitai approve / resolve)
auto_approvals:
enabled: false
allow_author_approval: false
# The findings go inline; the walkthrough comment stays as short as possible
high_level_summary: false
collapse_walkthrough: true
changed_files_summary: false
sequence_diagrams: false
estimate_code_review_effort: false
assess_linked_issues: false
related_issues: false
related_prs: false
suggested_labels: false
suggested_reviewers: false
in_progress_fortune: false
poem: false
review_status: false
review_info: true
enable_prompt_for_ai_agents: true
path_filters:
- "!vendor/**"
- "!**/*.lock"
- "!**/package-lock.json"
- "!.ai/generated/**"
# Built or vendored assets
- "!admin-dev/themes/*/public/**"
- "!**/*.min.js"
- "!**/*.min.css"
- "!**/*.map"
- "!js/jquery/**"
- "!js/tiny_mce/**"
- "!js/vendor/**"
- "!themes/_libraries/**"
# Translation catalogs, extracted from the code
- "!translations/**"
auto_review:
enabled: false
auto_incremental_review: true
# PRs also target the maintenance branches (9.2.x, 8.2.x…)
base_branches:
- "^\\d+\\.\\d+\\.x$"
finishing_touches:
# The root CONTEXT.md asks for minimal comments
docstrings:
enabled: false
unit_tests:
enabled: false
autofix:
enabled: true
fix_ci:
enabled: false
resolve_merge_conflict:
enabled: false
pre_merge_checks:
title:
mode: "off"
description:
mode: "off"
issue_assessment:
mode: "off"
tools:
# Reads the CI results instead of repeating PHPStan, php-cs-fixer, ESLint and the tests
github-checks:
enabled: true
phpstan:
enabled: false
phpcs:
enabled: false
phpmd:
enabled: false
eslint:
enabled: false
chat:
art: false
# Answers a reply to its own comments without a mention; no setting limits it to those threads, so it may
# also answer another comment it considers addressed to it
auto_reply: true
knowledge_base:
opt_out: false
code_guidelines:
enabled: true
filePatterns:
# A string entry only applies to the folder of its file (.ai/Component/Grid/ for the Grid context), and the
# references of CLAUDE.md or of a context are not followed: each context is mapped to the code it covers,
# with the globs of its Claude rule (.claude/rules/domain|component/), the files check-conventions.php
# maps to it too.
- files: ".ai/CONTEXT.md, .ai/CONTAINERS.md, .ai/GOTCHAS.md, .ai/MULTISTORE.md, .ai/REVIEW.md"
applyTo: "**"
- files: ".ai/STRUCTURE.md"
applyTo: ".ai/**"
# BEGIN generated by .ai/bin/generate-ai-index.sh from .ai/bin/context-index.php: edit the Layers table of a context, not these lines
- files: ".ai/Component/AdminAPI/CONTEXT.md"
applyTo: "modules/ps_apiresources/**, src/Core/Domain/ApiClient/**, src/Core/Security/OAuth2/**, src/PrestaShopBundle/ApiPlatform/**, src/PrestaShopBundle/Controller/Api/**, src/PrestaShopBundle/Resources/config/routing/api.yml, src/PrestaShopBundle/Resources/config/services/bundle/api_platform.yml, src/PrestaShopBundle/Resources/config/services/bundle/open_api.yml, src/PrestaShopBundle/Security/OAuth2/**, tests/Integration/ApiPlatform/**, tests/Integration/Core/Domain/ApiClient/**, tests/Integration/Core/Security/OAuth2/**, tests/Integration/PrestaShopBundle/ApiPlatform/**, tests/Integration/PrestaShopBundle/Controller/Api/**, tests/Integration/PrestaShopBundle/Security/OAuth2/**, tests/Integration/phpunit-api.xml, tests/Resources/ApiPlatform/Resources/**, tests/UI/campaigns/functional/API/**, tests/Unit/Core/Domain/ApiClient/**, tests/Unit/Core/Security/OAuth2/**, tests/Unit/PrestaShopBundle/ApiPlatform/**, tests/Unit/PrestaShopBundle/Controller/Api/**, tests/Unit/PrestaShopBundle/Security/OAuth2/**"
- files: ".ai/Component/BackOfficeHelp/CONTEXT.md"
applyTo: "src/Adapter/Shop/Url/HelpProvider.php, src/Core/Help/**, src/PrestaShopBundle/Twig/Extension/DocumentationLinkExtension.php, tests/Integration/Core/Help/**, tests/Unit/Core/Help/**"
- files: ".ai/Component/Behat/CONTEXT.md"
applyTo: "tests/Integration/Behaviour/**"
- files: ".ai/Component/CQRS/CONTEXT.md"
applyTo: "src/Adapter/*/*Repository.php, src/Adapter/*/CommandHandler/**, src/Core/CommandBus/CommandBusInterface.php, src/Core/Domain/*/CommandHandler/**, src/PrestaShopBundle/DependencyInjection/Compiler/CommandAndQueryRegisterPass.php, tests/Integration/Adapter/*/CommandHandler/**, tests/Integration/Core/Domain/*/CommandHandler/**, tests/Unit/Adapter/*/CommandHandler/**, tests/Unit/Core/Domain/*/CommandHandler/**"
- files: ".ai/Component/Configuration/CONTEXT.md"
applyTo: "src/Adapter/Configuration.php, src/Adapter/Configuration/*Configuration.php, src/Core/Configuration/**, tests/Integration/Core/Configuration/**, tests/Unit/Core/Configuration/**"
- files: ".ai/Component/Console/CONTEXT.md"
applyTo: "src/PrestaShopBundle/Command/**, src/PrestaShopBundle/Console/PrestaShopApplication.php, src/PrestaShopBundle/Service/Command/AbstractCommand.php, tests/Integration/PrestaShopBundle/Command/**, tests/Unit/PrestaShopBundle/Command/**"
- files: ".ai/Component/Context/CONTEXT.md"
applyTo: "src/Core/Context/**, src/PrestaShopBundle/EventListener/API/Context/**, src/PrestaShopBundle/EventListener/Admin/Context/**, src/PrestaShopBundle/EventListener/Console/Context/**, tests/Integration/Core/Context/**, tests/Integration/PrestaShopBundle/EventListener/API/Context/**, tests/Integration/PrestaShopBundle/EventListener/Admin/Context/**, tests/Integration/PrestaShopBundle/EventListener/Console/Context/**, tests/Unit/Core/Context/**, tests/Unit/PrestaShopBundle/EventListener/API/Context/**, tests/Unit/PrestaShopBundle/EventListener/Admin/Context/**, tests/Unit/PrestaShopBundle/EventListener/Console/Context/**"
- files: ".ai/Component/ContextStateManager/CONTEXT.md"
applyTo: "src/Adapter/ContextStateManager.php, src/PrestaShopBundle/Resources/config/services/adapter/common.yml"
- files: ".ai/Component/Controller/CONTEXT.md"
applyTo: "**/Controller/Admin/**, install-dev/data/xml/feature_flag.xml, src/PrestaShopBundle/Resources/config/routing/admin/*/**, tests/Integration/PrestaShopBundle/Resources/config/routing/admin/*/**, tests/Unit/PrestaShopBundle/Resources/config/routing/admin/*/**"
- files: ".ai/Component/Cookie/CONTEXT.md"
applyTo: "classes/Cookie.php, src/Core/Http/CookieOptions.php"
- files: ".ai/Component/Database/CONTEXT.md"
applyTo: "src/Adapter/*/Repository/**, src/Adapter/Database.php, src/Core/Repository/AbstractMultiShopObjectModelRepository.php, src/Core/Repository/AbstractObjectModelRepository.php, tests/Integration/Adapter/*/Repository/**, tests/Unit/Adapter/*/Repository/**"
- files: ".ai/Component/Export/CONTEXT.md"
applyTo: "src/Core/Export/**, src/Core/SqlManager/Exporter/SqlRequestExporter.php, tests/Integration/Core/Export/**, tests/Unit/Core/Export/**"
- files: ".ai/Component/ExtraProperty/CONTEXT.md"
applyTo: "**/*ExtraPropert*, **/*ExtraPropert*/**, **/*extra_propert*, **/*extra_propert*/**, app/config/admin-api/services.yml, app/config/admin/services.yml, classes/ObjectModel.php, classes/module/Module.php, src/Adapter/Presenter/AbstractLazyArray.php"
- files: ".ai/Component/FacetedSearch/CONTEXT.md"
applyTo: "modules/ps_facetedsearch/src/**, src/Core/Product/Search/**, tests/Integration/Core/Product/Search/**, tests/Unit/Core/Product/Search/**"
- files: ".ai/Component/Forms/CONTEXT.md, .ai/Component/Forms/CRUD.md, .ai/Component/Forms/SETTINGS.md"
applyTo: "**/Form/**/*Type.php, src/Core/Form/**, src/PrestaShopBundle/Form/**, src/PrestaShopBundle/Resources/config/services/bundle/form/**, src/PrestaShopBundle/Resources/config/services/core/form/**"
- files: ".ai/Component/Grid/CONTEXT.md"
applyTo: "**/Grid/**"
- files: ".ai/Component/Hook/CONTEXT.md"
applyTo: "src/Adapter/Hook/**, src/Core/Hook/**, tests/Integration/Adapter/Hook/**, tests/Integration/Core/Hook/**, tests/Unit/Adapter/Hook/**, tests/Unit/Core/Hook/**"
- files: ".ai/Component/Import/CONTEXT.md, .ai/Component/Import/PLAN.md"
applyTo: "**/ImportJobStatus.php, controllers/admin/AdminImportController.php, src/Adapter/*/Repository/*, src/Adapter/*/Repository/*/**, src/Adapter/Import/CommandHandler/**, src/Adapter/Import/Handler/**, src/Adapter/Import/Job/**, src/Core/Domain/Import/**, src/Core/Import/**, src/PrestaShopBundle/Command/ImportJobPurgeCommand.php, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/ImportController.php, src/PrestaShopBundle/Entity/ImportJob.php, tests/Integration/Adapter/*/Repository/*/**, tests/Integration/Adapter/Import/CommandHandler/**, tests/Integration/Adapter/Import/Handler/**, tests/Integration/Adapter/Import/Job/**, tests/Integration/Core/Domain/Import/**, tests/Integration/Core/Import/**, tests/Unit/Adapter/*/Repository/*/**, tests/Unit/Adapter/Import/CommandHandler/**, tests/Unit/Adapter/Import/Handler/**, tests/Unit/Adapter/Import/Job/**, tests/Unit/Core/Domain/Import/**, tests/Unit/Core/Import/**"
- files: ".ai/Component/Javascript/CONTEXT.md"
applyTo: "admin-dev/themes/new-theme/.webpack/common.js, admin-dev/themes/new-theme/js/**, admin-dev/themes/new-theme/public/*.bundle.js, js/pages/*/**"
- files: ".ai/Component/Link/CONTEXT.md"
applyTo: "classes/Link.php, src/Adapter/Admin/UrlGenerator.php, src/Adapter/Routing/**, src/Core/Routing/**, tests/Integration/Adapter/Routing/**, tests/Integration/Core/Routing/**, tests/Unit/Adapter/Routing/**, tests/Unit/Core/Routing/**"
- files: ".ai/Component/Locale/CONTEXT.md"
applyTo: "src/Adapter/Localization/**, src/Core/Localization/**, tests/Integration/Adapter/Localization/**, tests/Integration/Core/Localization/**, tests/Unit/Adapter/Localization/**, tests/Unit/Core/Localization/**"
- files: ".ai/Component/MailTemplate/CONTEXT.md"
applyTo: "src/Adapter/MailTemplate/**, src/Core/MailTemplate/FolderThemeCatalog.php, src/Core/MailTemplate/Layout/LayoutVariablesBuilder.php, src/Core/MailTemplate/MailTemplateRendererInterface.php, src/Core/MailTemplate/Transformation/**, tests/Integration/Adapter/MailTemplate/**, tests/Integration/Core/MailTemplate/Transformation/**, tests/Unit/Adapter/MailTemplate/**, tests/Unit/Core/MailTemplate/Transformation/**"
- files: ".ai/Component/Migration/CONTEXT.md"
applyTo: "controllers/admin/**, install-dev/data/xml/feature_flag.xml"
- files: ".ai/Component/Playwright/CONTEXT.md"
applyTo: "tests/UI/**"
- files: ".ai/Component/PositionUpdater/CONTEXT.md"
applyTo: "src/Core/Grid/Position/**, tests/Integration/Core/Grid/Position/**, tests/Unit/Core/Grid/Position/**"
- files: ".ai/Component/Router/CONTEXT.md"
applyTo: "src/Adapter/Admin/UrlGenerator.php, src/Adapter/Routing/**, src/Core/Routing/**, src/PrestaShopBundle/Routing/Converter/**, src/PrestaShopBundle/Service/Routing/Router.php, tests/Integration/Adapter/Routing/**, tests/Integration/Core/Routing/**, tests/Integration/PrestaShopBundle/Routing/Converter/**, tests/Unit/Adapter/Routing/**, tests/Unit/Core/Routing/**, tests/Unit/PrestaShopBundle/Routing/Converter/**"
- files: ".ai/Component/Smarty/CONTEXT.md"
applyTo: "**/*.tpl, classes/Smarty/SmartyCustom.php, classes/Smarty/SmartyDev.php, classes/Smarty/SmartyLazyRegister.php, classes/Smarty/SmartyResourceModule.php, classes/Smarty/SmartyResourceParent.php, classes/Smarty/TemplateFinder.php, src/Adapter/Smarty/SmartyCacheConfiguration.php"
- files: ".ai/Component/TinyMCE/CONTEXT.md"
applyTo: "admin-dev/themes/new-theme/js/components/tinymce-editor.js, js/admin/tinymce.inc.js, js/admin/tinymce_loader.js, src/PrestaShopBundle/Form/Admin/Type/FormattedTextareaType.php"
- files: ".ai/Component/Twig/CONTEXT.md"
applyTo: "**/*.twig, src/PrestaShopBundle/Twig/**, tests/Integration/PrestaShopBundle/Twig/**, tests/Unit/PrestaShopBundle/Twig/**"
- files: ".ai/Domain/Address/CONTEXT.md"
applyTo: "classes/Address.php, src/Adapter/Address/**, src/Core/Domain/Address/**, src/PrestaShopBundle/Controller/Admin/Sell/Address/AddressController.php, tests/Integration/Adapter/Address/**, tests/Integration/Core/Domain/Address/**, tests/Unit/Adapter/Address/**, tests/Unit/Core/Domain/Address/**"
- files: ".ai/Domain/Alias/CONTEXT.md"
applyTo: "classes/Alias.php, src/Adapter/Alias/**, src/Core/Domain/Alias/**, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/SearchAliasController.php, tests/Integration/Adapter/Alias/**, tests/Integration/Core/Domain/Alias/**, tests/Unit/Adapter/Alias/**, tests/Unit/Core/Domain/Alias/**"
- files: ".ai/Domain/ApiClient/CONTEXT.md"
applyTo: "src/Adapter/ApiClient/**, src/Core/Domain/ApiClient/**, src/PrestaShopBundle/ApiPlatform/Resources/ApiClient.php, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdminAPIController.php, src/PrestaShopBundle/Entity/ApiClient.php, tests/Integration/Adapter/ApiClient/**, tests/Integration/Core/Domain/ApiClient/**, tests/Unit/Adapter/ApiClient/**, tests/Unit/Core/Domain/ApiClient/**"
- files: ".ai/Domain/Attachment/CONTEXT.md"
applyTo: "classes/Attachment.php, src/Adapter/Attachment/**, src/Core/Domain/Attachment/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/AttachmentController.php, tests/Integration/Adapter/Attachment/**, tests/Integration/Core/Domain/Attachment/**, tests/Unit/Adapter/Attachment/**, tests/Unit/Core/Domain/Attachment/**"
- files: ".ai/Domain/AttributeGroup/CONTEXT.md"
applyTo: "classes/AttributeGroup.php, src/Adapter/AttributeGroup/**, src/Core/Domain/AttributeGroup/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/AttributeGroupController.php, tests/Integration/Adapter/AttributeGroup/**, tests/Integration/Core/Domain/AttributeGroup/**, tests/Unit/Adapter/AttributeGroup/**, tests/Unit/Core/Domain/AttributeGroup/**"
- files: ".ai/Domain/Carrier/CONTEXT.md"
applyTo: "classes/Carrier.php, src/Adapter/Carrier/**, src/Core/Domain/Carrier/**, src/PrestaShopBundle/Controller/Admin/Improve/Shipping/CarrierController.php, tests/Integration/Adapter/Carrier/**, tests/Integration/Core/Domain/Carrier/**, tests/Unit/Adapter/Carrier/**, tests/Unit/Core/Domain/Carrier/**"
- files: ".ai/Domain/Cart/CONTEXT.md"
applyTo: "classes/Cart.php, classes/CartRule.php, src/Adapter/Cart/**, src/Adapter/Presenter/Cart/**, src/Core/Cart/**, src/Core/Domain/Cart/**, tests/Integration/Adapter/Cart/**, tests/Integration/Adapter/Presenter/Cart/**, tests/Integration/Core/Cart/**, tests/Integration/Core/Domain/Cart/**, tests/Unit/Adapter/Cart/**, tests/Unit/Adapter/Presenter/Cart/**, tests/Unit/Core/Cart/**, tests/Unit/Core/Domain/Cart/**"
- files: ".ai/Domain/CartRule/CONTEXT.md"
applyTo: "classes/CartRule.php, src/Adapter/CartRule/**, src/Core/Domain/CartRule/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/CartRuleController.php, tests/Integration/Adapter/CartRule/**, tests/Integration/Core/Domain/CartRule/**, tests/Unit/Adapter/CartRule/**, tests/Unit/Core/Domain/CartRule/**"
- files: ".ai/Domain/CatalogPriceRule/CONTEXT.md"
applyTo: "classes/SpecificPriceRule.php, src/Adapter/CatalogPriceRule/**, src/Core/Domain/CatalogPriceRule/**, src/Core/Grid/Definition/Factory/CatalogPriceRuleGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/CatalogPriceRuleController.php, tests/Integration/Adapter/CatalogPriceRule/**, tests/Integration/Core/Domain/CatalogPriceRule/**, tests/Unit/Adapter/CatalogPriceRule/**, tests/Unit/Core/Domain/CatalogPriceRule/**"
- files: ".ai/Domain/Category/CONTEXT.md"
applyTo: "classes/Category.php, src/Adapter/Category/**, src/Core/Domain/Category/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/CategoryController.php, tests/Integration/Adapter/Category/**, tests/Integration/Core/Domain/Category/**, tests/Unit/Adapter/Category/**, tests/Unit/Core/Domain/Category/**"
- files: ".ai/Domain/CmsPage/CONTEXT.md"
applyTo: "src/Adapter/CmsPage/**, src/Core/Domain/CmsPage/**, src/Core/Grid/Definition/Factory/CmsPageDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/Design/CmsPageController.php, tests/Integration/Adapter/CmsPage/**, tests/Integration/Core/Domain/CmsPage/**, tests/Unit/Adapter/CmsPage/**, tests/Unit/Core/Domain/CmsPage/**"
- files: ".ai/Domain/CmsPageCategory/CONTEXT.md"
applyTo: "src/Adapter/CmsPageCategory/**, src/Core/Domain/CmsPageCategory/**, src/Core/Grid/Definition/Factory/CmsPageCategoryDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/Design/CmsPageController.php, tests/Integration/Adapter/CmsPageCategory/**, tests/Integration/Core/Domain/CmsPageCategory/**, tests/Unit/Adapter/CmsPageCategory/**, tests/Unit/Core/Domain/CmsPageCategory/**"
- files: ".ai/Domain/Combination/CONTEXT.md"
applyTo: "classes/Combination.php, src/Adapter/Combination/**, src/Adapter/Product/Combination/CommandHandler/**, src/Adapter/Product/Combination/Create/**, src/Adapter/Product/Combination/Repository/CombinationRepository.php, src/Adapter/Product/Combination/Update/**, src/Adapter/Product/Combination/Validate/**, src/Core/Domain/Combination/**, src/Core/Domain/Product/Combination/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/Product/CombinationController.php, tests/Integration/Adapter/Combination/**, tests/Integration/Adapter/Product/Combination/CommandHandler/**, tests/Integration/Adapter/Product/Combination/Create/**, tests/Integration/Adapter/Product/Combination/Update/**, tests/Integration/Adapter/Product/Combination/Validate/**, tests/Integration/Core/Domain/Combination/**, tests/Integration/Core/Domain/Product/Combination/**, tests/Unit/Adapter/Combination/**, tests/Unit/Adapter/Product/Combination/CommandHandler/**, tests/Unit/Adapter/Product/Combination/Create/**, tests/Unit/Adapter/Product/Combination/Update/**, tests/Unit/Adapter/Product/Combination/Validate/**, tests/Unit/Core/Domain/Combination/**, tests/Unit/Core/Domain/Product/Combination/**"
- files: ".ai/Domain/Configuration/CONTEXT.md"
applyTo: "classes/Configuration.php, src/Adapter/Configuration/**, src/Core/Domain/Configuration/**, tests/Integration/Adapter/Configuration/**, tests/Integration/Core/Domain/Configuration/**, tests/Unit/Adapter/Configuration/**, tests/Unit/Core/Domain/Configuration/**"
- files: ".ai/Domain/Contact/CONTEXT.md"
applyTo: "classes/Contact.php, src/Adapter/Contact/**, src/Core/Domain/Contact/**, src/Core/Grid/Definition/Factory/ContactGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/ContactsController.php, tests/Integration/Adapter/Contact/**, tests/Integration/Core/Domain/Contact/**, tests/Unit/Adapter/Contact/**, tests/Unit/Core/Domain/Contact/**"
- files: ".ai/Domain/Country/CONTEXT.md"
applyTo: "classes/Country.php, src/Adapter/Country/**, src/Core/Domain/Country/**, src/Core/Grid/Definition/Factory/CountryGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/International/CountryController.php, tests/Integration/Adapter/Country/**, tests/Integration/Core/Domain/Country/**, tests/Unit/Adapter/Country/**, tests/Unit/Core/Domain/Country/**"
- files: ".ai/Domain/CreditSlip/CONTEXT.md"
applyTo: "src/Adapter/CreditSlip/**, src/Core/Domain/CreditSlip/**, src/Core/Grid/Definition/Factory/CreditSlipGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Order/CreditSlipController.php, src/PrestaShopBundle/Form/Admin/Sell/Order/CreditSlip/**, tests/Integration/Adapter/CreditSlip/**, tests/Integration/Core/Domain/CreditSlip/**, tests/Integration/PrestaShopBundle/Form/Admin/Sell/Order/CreditSlip/**, tests/Unit/Adapter/CreditSlip/**, tests/Unit/Core/Domain/CreditSlip/**, tests/Unit/PrestaShopBundle/Form/Admin/Sell/Order/CreditSlip/**"
- files: ".ai/Domain/Currency/CONTEXT.md"
applyTo: "classes/Currency.php, src/Adapter/Currency/**, src/Core/Domain/Currency/**, src/Core/Grid/Definition/Factory/CurrencyGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/International/CurrencyController.php, tests/Integration/Adapter/Currency/**, tests/Integration/Core/Domain/Currency/**, tests/Unit/Adapter/Currency/**, tests/Unit/Core/Domain/Currency/**"
- files: ".ai/Domain/Customer/CONTEXT.md"
applyTo: "classes/Customer.php, src/Adapter/Customer/**, src/Core/Domain/Customer/**, src/Core/Grid/Definition/Factory/CustomerGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Customer/CustomerController.php, tests/Integration/Adapter/Customer/**, tests/Integration/Core/Domain/Customer/**, tests/Unit/Adapter/Customer/**, tests/Unit/Core/Domain/Customer/**"
- files: ".ai/Domain/CustomerMessage/CONTEXT.md"
applyTo: "classes/CustomerMessage.php, src/Adapter/CustomerMessage/**, src/Core/Domain/CustomerMessage/**, tests/Integration/Adapter/CustomerMessage/**, tests/Integration/Core/Domain/CustomerMessage/**, tests/Unit/Adapter/CustomerMessage/**, tests/Unit/Core/Domain/CustomerMessage/**"
- files: ".ai/Domain/CustomerService/CONTEXT.md"
applyTo: "classes/CustomerThread.php, src/Adapter/CustomerService/**, src/Core/Domain/CustomerService/**, src/Core/Grid/Definition/Factory/CustomerThreadGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/CustomerService/CustomerThreadController.php, tests/Integration/Adapter/CustomerService/**, tests/Integration/Core/Domain/CustomerService/**, tests/Unit/Adapter/CustomerService/**, tests/Unit/Core/Domain/CustomerService/**"
- files: ".ai/Domain/Discount/CONTEXT.md"
applyTo: "classes/CartRule.php, src/Adapter/Discount/**, src/Core/Domain/Discount/**, src/Core/Grid/Definition/Factory/DiscountGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/DiscountController.php, tests/Integration/Adapter/Discount/**, tests/Integration/Core/Domain/Discount/**, tests/Unit/Adapter/Discount/**, tests/Unit/Core/Domain/Discount/**"
- files: ".ai/Domain/Employee/CONTEXT.md"
applyTo: "classes/Employee.php, src/Adapter/Employee/**, src/Adapter/Profile/Employee/CommandHandler/**, src/Adapter/Profile/Employee/QueryHandler/**, src/Core/Domain/Employee/**, src/Core/Grid/Definition/Factory/EmployeeGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/EmployeeController.php, tests/Integration/Adapter/Employee/**, tests/Integration/Adapter/Profile/Employee/CommandHandler/**, tests/Integration/Adapter/Profile/Employee/QueryHandler/**, tests/Integration/Core/Domain/Employee/**, tests/Unit/Adapter/Employee/**, tests/Unit/Adapter/Profile/Employee/CommandHandler/**, tests/Unit/Adapter/Profile/Employee/QueryHandler/**, tests/Unit/Core/Domain/Employee/**"
- files: ".ai/Domain/Feature/CONTEXT.md"
applyTo: "classes/Feature.php, src/Adapter/Feature/**, src/Core/Domain/Feature/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/FeatureController.php, tests/Integration/Adapter/Feature/**, tests/Integration/Core/Domain/Feature/**, tests/Unit/Adapter/Feature/**, tests/Unit/Core/Domain/Feature/**"
- files: ".ai/Domain/Hook/CONTEXT.md"
applyTo: "classes/Hook.php, src/Adapter/Hook/**, src/Core/Domain/Hook/**, tests/Integration/Adapter/Hook/**, tests/Integration/Core/Domain/Hook/**, tests/Unit/Adapter/Hook/**, tests/Unit/Core/Domain/Hook/**"
- files: ".ai/Domain/ImageSettings/CONTEXT.md"
applyTo: "src/Adapter/ImageSettings/**, src/Core/Domain/ImageSettings/**, src/PrestaShopBundle/Controller/Admin/Improve/Design/ImageSettingsController.php, tests/Integration/Adapter/ImageSettings/**, tests/Integration/Core/Domain/ImageSettings/**, tests/Unit/Adapter/ImageSettings/**, tests/Unit/Core/Domain/ImageSettings/**"
- files: ".ai/Domain/Language/CONTEXT.md"
applyTo: "classes/Language.php, src/Adapter/Language/**, src/Core/Domain/Language/**, src/PrestaShopBundle/Controller/Admin/Improve/International/LanguageController.php, tests/Integration/Adapter/Language/**, tests/Integration/Core/Domain/Language/**, tests/Unit/Adapter/Language/**, tests/Unit/Core/Domain/Language/**"
- files: ".ai/Domain/MailTemplate/CONTEXT.md"
applyTo: "src/Adapter/MailTemplate/**, src/Core/Domain/MailTemplate/**, src/Core/MailTemplate/**, src/PrestaShopBundle/Controller/Admin/Improve/Design/MailThemeController.php, tests/Integration/Adapter/MailTemplate/**, tests/Integration/Core/Domain/MailTemplate/**, tests/Integration/Core/MailTemplate/**, tests/Unit/Adapter/MailTemplate/**, tests/Unit/Core/Domain/MailTemplate/**, tests/Unit/Core/MailTemplate/**"
- files: ".ai/Domain/Manufacturer/CONTEXT.md"
applyTo: "classes/Manufacturer.php, src/Adapter/Manufacturer/**, src/Core/Domain/Manufacturer/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/ManufacturerController.php, tests/Integration/Adapter/Manufacturer/**, tests/Integration/Core/Domain/Manufacturer/**, tests/Unit/Adapter/Manufacturer/**, tests/Unit/Core/Domain/Manufacturer/**"
- files: ".ai/Domain/Meta/CONTEXT.md"
applyTo: "classes/Meta.php, src/Adapter/Meta/**, src/Core/Domain/Meta/**, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/MetaController.php, tests/Integration/Adapter/Meta/**, tests/Integration/Core/Domain/Meta/**, tests/Unit/Adapter/Meta/**, tests/Unit/Core/Domain/Meta/**"
- files: ".ai/Domain/Module/CONTEXT.md"
applyTo: "classes/module/*.php, src/Adapter/Module/**, src/Core/Domain/Module/**, src/PrestaShopBundle/Controller/Admin/Improve/ModuleController.php, tests/Integration/Adapter/Module/**, tests/Integration/Core/Domain/Module/**, tests/Unit/Adapter/Module/**, tests/Unit/Core/Domain/Module/**"
- files: ".ai/Domain/Notification/CONTEXT.md"
applyTo: "classes/Notification.php, src/Adapter/Notification/**, src/Core/Domain/Notification/**, tests/Integration/Adapter/Notification/**, tests/Integration/Core/Domain/Notification/**, tests/Unit/Adapter/Notification/**, tests/Unit/Core/Domain/Notification/**"
- files: ".ai/Domain/Order/CONTEXT.md"
applyTo: "classes/order/Order.php, src/Adapter/Order/**, src/Core/Domain/Order/**, src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php, tests/Integration/Adapter/Order/**, tests/Integration/Core/Domain/Order/**, tests/Unit/Adapter/Order/**, tests/Unit/Core/Domain/Order/**"
- files: ".ai/Domain/OrderMessage/CONTEXT.md"
applyTo: "classes/order/OrderMessage.php, src/Adapter/OrderMessage/**, src/Core/Domain/OrderMessage/**, src/Core/Grid/Definition/Factory/OrderMessageGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/CustomerService/OrderMessageController.php, tests/Integration/Adapter/OrderMessage/**, tests/Integration/Core/Domain/OrderMessage/**, tests/Unit/Adapter/OrderMessage/**, tests/Unit/Core/Domain/OrderMessage/**"
- files: ".ai/Domain/OrderReturn/CONTEXT.md"
applyTo: "classes/order/OrderReturn.php, src/Adapter/OrderReturn/**, src/Core/Domain/OrderReturn/**, tests/Integration/Adapter/OrderReturn/**, tests/Integration/Core/Domain/OrderReturn/**, tests/Unit/Adapter/OrderReturn/**, tests/Unit/Core/Domain/OrderReturn/**"
- files: ".ai/Domain/OrderReturnState/CONTEXT.md"
applyTo: "classes/order/OrderReturnState.php, src/Adapter/OrderReturnState/**, src/Core/Domain/OrderReturnState/**, src/Core/Grid/Definition/Factory/OrderReturnStatesGridDefinitionFactory.php, tests/Integration/Adapter/OrderReturnState/**, tests/Integration/Core/Domain/OrderReturnState/**, tests/Unit/Adapter/OrderReturnState/**, tests/Unit/Core/Domain/OrderReturnState/**"
- files: ".ai/Domain/OrderState/CONTEXT.md"
applyTo: "classes/order/OrderState.php, src/Adapter/OrderState/**, src/Core/Domain/OrderState/**, src/Core/Grid/Definition/Factory/OrderStatesGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/OrderStateController.php, tests/Integration/Adapter/OrderState/**, tests/Integration/Core/Domain/OrderState/**, tests/Unit/Adapter/OrderState/**, tests/Unit/Core/Domain/OrderState/**"
- files: ".ai/Domain/Position/CONTEXT.md"
applyTo: "src/Adapter/Position/**, src/Core/Domain/Position/**, tests/Integration/Adapter/Position/**, tests/Integration/Core/Domain/Position/**, tests/Unit/Adapter/Position/**, tests/Unit/Core/Domain/Position/**"
- files: ".ai/Domain/Product/CONTEXT.md"
applyTo: "admin-dev/themes/new-theme/js/pages/product/**, classes/Product.php, src/Adapter/Product/**, src/Core/Domain/Product/**, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/Product/**, tests/Integration/Adapter/Product/**, tests/Integration/Core/Domain/Product/**, tests/Integration/PrestaShopBundle/Controller/Admin/Sell/Catalog/Product/**, tests/Unit/Adapter/Product/**, tests/Unit/Core/Domain/Product/**, tests/Unit/PrestaShopBundle/Controller/Admin/Sell/Catalog/Product/**"
- files: ".ai/Domain/Profile/CONTEXT.md"
applyTo: "classes/Profile.php, src/Adapter/Profile/**, src/Core/Domain/Profile/**, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/ProfileController.php, tests/Integration/Adapter/Profile/**, tests/Integration/Core/Domain/Profile/**, tests/Unit/Adapter/Profile/**, tests/Unit/Core/Domain/Profile/**"
- files: ".ai/Domain/Search/CONTEXT.md"
applyTo: "classes/Search.php, src/Adapter/Search/**, src/Core/Domain/Search/**, tests/Integration/Adapter/Search/**, tests/Integration/Core/Domain/Search/**, tests/Unit/Adapter/Search/**, tests/Unit/Core/Domain/Search/**"
- files: ".ai/Domain/SearchEngine/CONTEXT.md"
applyTo: "classes/SearchEngine.php, src/Adapter/SearchEngine/**, src/Core/Domain/SearchEngine/**, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/SearchEnginesController.php, tests/Integration/Adapter/SearchEngine/**, tests/Integration/Core/Domain/SearchEngine/**, tests/Unit/Adapter/SearchEngine/**, tests/Unit/Core/Domain/SearchEngine/**"
- files: ".ai/Domain/Security/CONTEXT.md"
applyTo: "src/Adapter/Security/**, src/Core/Domain/Security/**, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/SecurityController.php, tests/Integration/Adapter/Security/**, tests/Integration/Core/Domain/Security/**, tests/Unit/Adapter/Security/**, tests/Unit/Core/Domain/Security/**"
- files: ".ai/Domain/Shipment/CONTEXT.md"
applyTo: "src/Adapter/Shipment/**, src/Core/Domain/Shipment/**, src/PrestaShopBundle/Entity/Shipment.php, tests/Integration/Adapter/Shipment/**, tests/Integration/Core/Domain/Shipment/**, tests/Unit/Adapter/Shipment/**, tests/Unit/Core/Domain/Shipment/**"
- files: ".ai/Domain/Shop/CONTEXT.md"
applyTo: "src/Adapter/Shop/**, src/Core/Domain/Shop/**, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/ShopController.php, tests/Integration/Adapter/Shop/**, tests/Integration/Core/Domain/Shop/**, tests/Unit/Adapter/Shop/**, tests/Unit/Core/Domain/Shop/**"
- files: ".ai/Domain/ShowcaseCard/CONTEXT.md"
applyTo: "src/Adapter/ShowcaseCard/**, src/Core/Domain/ShowcaseCard/**, src/PrestaShopBundle/Controller/Admin/Configure/ShowcaseCardController.php, tests/Integration/Adapter/ShowcaseCard/**, tests/Integration/Core/Domain/ShowcaseCard/**, tests/Unit/Adapter/ShowcaseCard/**, tests/Unit/Core/Domain/ShowcaseCard/**"
- files: ".ai/Domain/SqlManagement/CONTEXT.md"
applyTo: "src/Adapter/SqlManagement/**, src/Core/Domain/SqlManagement/**, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/SqlManagerController.php, tests/Integration/Adapter/SqlManagement/**, tests/Integration/Core/Domain/SqlManagement/**, tests/Unit/Adapter/SqlManagement/**, tests/Unit/Core/Domain/SqlManagement/**"
- files: ".ai/Domain/State/CONTEXT.md"
applyTo: "classes/State.php, src/Adapter/State/**, src/Core/Domain/State/**, src/PrestaShopBundle/Controller/Admin/Improve/International/StateController.php, tests/Integration/Adapter/State/**, tests/Integration/Core/Domain/State/**, tests/Unit/Adapter/State/**, tests/Unit/Core/Domain/State/**"
- files: ".ai/Domain/Store/CONTEXT.md"
applyTo: "classes/Store.php, src/Adapter/Store/**, src/Core/Domain/Store/**, src/Core/Grid/Definition/Factory/StoreGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/StoreController.php, tests/Integration/Adapter/Store/**, tests/Integration/Core/Domain/Store/**, tests/Unit/Adapter/Store/**, tests/Unit/Core/Domain/Store/**"
- files: ".ai/Domain/Supplier/CONTEXT.md"
applyTo: "classes/Supplier.php, src/Adapter/Supplier/**, src/Core/Domain/Supplier/**, src/Core/Grid/Definition/Factory/SupplierGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Sell/Catalog/SupplierController.php, src/PrestaShopBundle/Form/Admin/Sell/Supplier/SupplierType.php, tests/Integration/Adapter/Supplier/**, tests/Integration/Core/Domain/Supplier/**, tests/Unit/Adapter/Supplier/**, tests/Unit/Core/Domain/Supplier/**"
- files: ".ai/Domain/Tab/CONTEXT.md"
applyTo: "classes/Tab.php, src/Adapter/Tab/**, src/Core/Domain/Tab/**, tests/Integration/Adapter/Tab/**, tests/Integration/Core/Domain/Tab/**, tests/Unit/Adapter/Tab/**, tests/Unit/Core/Domain/Tab/**"
- files: ".ai/Domain/Tag/CONTEXT.md"
applyTo: "classes/Tag.php, src/Adapter/Tag/**, src/Core/Domain/Tag/**, src/Core/Grid/Definition/Factory/TagGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/TagController.php, src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/Tag/TagType.php, tests/Integration/Adapter/Tag/**, tests/Integration/Core/Domain/Tag/**, tests/Unit/Adapter/Tag/**, tests/Unit/Core/Domain/Tag/**"
- files: ".ai/Domain/Tax/CONTEXT.md"
applyTo: "src/Adapter/Tax/**, src/Core/Domain/Tax/**, src/Core/Grid/Definition/Factory/TaxGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/International/TaxController.php, tests/Integration/Adapter/Tax/**, tests/Integration/Core/Domain/Tax/**, tests/Unit/Adapter/Tax/**, tests/Unit/Core/Domain/Tax/**"
- files: ".ai/Domain/TaxRulesGroup/CONTEXT.md"
applyTo: "src/Adapter/TaxRulesGroup/**, src/Core/Domain/TaxRulesGroup/**, src/Core/Grid/Definition/Factory/TaxRulesGroupGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/International/TaxRulesGroupController.php, tests/Integration/Adapter/TaxRulesGroup/**, tests/Integration/Core/Domain/TaxRulesGroup/**, tests/Unit/Adapter/TaxRulesGroup/**, tests/Unit/Core/Domain/TaxRulesGroup/**"
- files: ".ai/Domain/Theme/CONTEXT.md"
applyTo: "src/Adapter/Theme/**, src/Core/Domain/Theme/**, src/PrestaShopBundle/Controller/Admin/Improve/Design/ThemeController.php, tests/Integration/Adapter/Theme/**, tests/Integration/Core/Domain/Theme/**, tests/Unit/Adapter/Theme/**, tests/Unit/Core/Domain/Theme/**"
- files: ".ai/Domain/Title/CONTEXT.md"
applyTo: "src/Adapter/Title/**, src/Core/Domain/Title/**, src/Core/Grid/Definition/Factory/TitleGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/TitleController.php, tests/Integration/Adapter/Title/**, tests/Integration/Core/Domain/Title/**, tests/Unit/Adapter/Title/**, tests/Unit/Core/Domain/Title/**"
- files: ".ai/Domain/Webservice/CONTEXT.md"
applyTo: "src/Adapter/Webservice/**, src/Core/Domain/Webservice/**, src/Core/Grid/Definition/Factory/WebserviceKeyDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/WebserviceController.php, tests/Integration/Adapter/Webservice/**, tests/Integration/Core/Domain/Webservice/**, tests/Unit/Adapter/Webservice/**, tests/Unit/Core/Domain/Webservice/**"
- files: ".ai/Domain/Zone/CONTEXT.md"
applyTo: "classes/Zone.php, src/Adapter/Zone/**, src/Core/Domain/Zone/**, src/Core/Grid/Definition/Factory/ZoneGridDefinitionFactory.php, src/PrestaShopBundle/Controller/Admin/Improve/International/ZoneController.php, tests/Integration/Adapter/Zone/**, tests/Integration/Core/Domain/Zone/**, tests/Unit/Adapter/Zone/**, tests/Unit/Core/Domain/Zone/**"
- files: "PrestaShop/ps_apiresources:.ai/CONTEXT.md, PrestaShop/ps_apiresources:.ai/REVIEW.md"
applyTo: "modules/ps_apiresources/**, src/Core/Domain/ApiClient/**, src/Core/Security/OAuth2/**, src/PrestaShopBundle/ApiPlatform/**, src/PrestaShopBundle/Controller/Api/**, src/PrestaShopBundle/Resources/config/routing/api.yml, src/PrestaShopBundle/Resources/config/services/bundle/api_platform.yml, src/PrestaShopBundle/Resources/config/services/bundle/open_api.yml, src/PrestaShopBundle/Security/OAuth2/**, tests/Integration/ApiPlatform/**, tests/Integration/Core/Domain/ApiClient/**, tests/Integration/Core/Security/OAuth2/**, tests/Integration/PrestaShopBundle/ApiPlatform/**, tests/Integration/PrestaShopBundle/Controller/Api/**, tests/Integration/PrestaShopBundle/Security/OAuth2/**, tests/Integration/phpunit-api.xml, tests/Resources/ApiPlatform/Resources/**, tests/UI/campaigns/functional/API/**, tests/Unit/Core/Domain/ApiClient/**, tests/Unit/Core/Security/OAuth2/**, tests/Unit/PrestaShopBundle/ApiPlatform/**, tests/Unit/PrestaShopBundle/Controller/Api/**, tests/Unit/PrestaShopBundle/Security/OAuth2/**"
# END generated
learnings:
scope: auto
# A learning drawn from a chat waits for an admin approval (Learnings dashboard → Pending approvals) and
# applies by itself after this many days, 30 at most
approval_delay: 30
pull_requests:
scope: auto
issues:
scope: auto
# The MCP servers are added in the CodeRabbit app (Integrations → MCP servers), not here: the PrestaShop
# developer documentation (https://devdocs-mcp.prestashop.com/mcp, Direct connection, no authentication),
# with its usage guidance written in the "Usage guidance" field. "auto" disables them on a public repository.
mcp:
usage: enabled
linked_repositories:
- repository: "PrestaShop/ADR"
instructions: >-
Architecture decisions of the core: the backward compatibility promise (0017) decides what a bug fix
on a maintenance branch may change, the CQRS ADRs how commands, queries and handlers are split.
- repository: "PrestaShop/ps_apiresources"
instructions: >-
The Admin API endpoints, built on the core CQRS classes: a core change to a command, a query or their
value objects may break a resource of this module.