Skip to content

Commit 4fd46ad

Browse files
committed
Commit local changes before pull
1 parent ce91dc9 commit 4fd46ad

6 files changed

Lines changed: 142 additions & 7287 deletions

File tree

.github/copilot-instructions.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization#_use-a-githubcopilotinstructionsmd-file -->
2+
3+
All code comments should be written in English.
4+
5+
All messages, including error messages, should be written in English.
6+
7+
All code should be written in PHP 8.4 or later.
8+
9+
All code should follow the PSR-12 coding standard.
10+
11+
12+
When writing code, always include a docblock for functions and classes, describing their purpose, parameters, and return types.
13+
14+
When writing or updating commands, always ensure that all output (including errors, status, and results) is returned in JSON format when the --format json option is requested, for all commands and operations.
15+
16+
When writing tests, use PHPUnit and follow the PSR-12 coding standard.
17+
18+
When writing README, use markdown format.
19+
20+
When writing commit messages, use the imperative mood and keep them concise.
21+
22+
When writing code comments, use complete sentences and proper grammar.
23+
24+
When writing code, always use meaningful variable names that describe their purpose.
25+
26+
When writing code, avoid using magic numbers or strings; instead, define constants for them.
27+
28+
When writing code, always handle exceptions properly and provide meaningful error messages.
29+
30+
When writing code, always include type hints for function parameters and return types.
31+
32+
We are using the i18n library for internationalization, so always use the _() functions for strings that need to be translated.
33+
34+
When writing code, always ensure that it is secure and does not expose any sensitive information.
35+
36+
When writing code, always consider performance and optimize where necessary.
37+
38+
When writing code, always ensure that it is compatible with the latest version of PHP and the libraries we are using.
39+
40+
When writing code, always ensure that it is well-tested and includes unit tests where applicable.
41+
42+
When writing code, always ensure that it is maintainable and follows best practices.
43+
44+
When create new class or update existing class, always create or update its phpunit test files.

0 commit comments

Comments
 (0)