Skip to content

Commit 777494f

Browse files
authored
add shared instruction for copilot usage (#22254)
1 parent 191cea5 commit 777494f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/copilot-instructions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Follow GLPI’s latest coding standards and best practices: naming, indentation, comments, and PER Coding Style 3.0 compliance.
2+
Use the GLPI framework whenever possible.
3+
Do not use deprecated code.
4+
Do not use PHP features older than version 8.2.
5+
Do not use GLPI code or APIs older than version 11.0.
6+
Never create .md or .txt files to explain changes.
7+
Never explain what you did.
8+
Do not add unnecessary comments or TODO notes.
9+
Follow the MVC pattern, routing, and controllers wherever possible.
10+
Do not create /front/ files — always use controllers and routes if possible.
11+
Never output raw HTML with echo; always use Twig templates.
12+
Never execute raw SQL — always use GLPI’s ORM and database abstraction layer.
13+
Do not ask clarification questions, except when a real choice between two technical solutions must be made.
14+
Do not generate tests unless requested.
15+
When generating code, always ensure it is secure and free from vulnerabilities.
16+
When importing libraries or packages, prefer already imported ones; if using new ones, they must be compatible with GLPI GPLv3+ License.

0 commit comments

Comments
 (0)