Skip to content

Commit 6d4d084

Browse files
authored
Update
1 parent d01cad7 commit 6d4d084

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
3535
- Follow WordPress theme and plugin development guidelines.
3636
- Use WordPress REST API for custom endpoints and data retrieval.
3737
- Ensure all code is compatible with the WordPress ecosystem, including themes and plugins.
38-
- As this is a WordPress-focused project, avoid using frameworks or libraries that are not compatible with WordPress.
39-
- Do not use frameworks or libraries that are not commonly used in the WordPress ecosystem.
38+
- As this is a WordPress-focused project, avoid using frameworks or libraries that are not compatible or commonly used with WordPress.
4039
- Avoid using non-standard or experimental features that are not widely adopted in the WordPress community.
41-
- For any project that utilizes WooCommerce, ensure minimum version compatibility with WooCommerce 5.0+.
4240

4341
## WordPress Coding Standards
4442

@@ -63,7 +61,7 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
6361
- WordPress 6.5+ (minimum)
6462
- PHP 7.4+ (minimum)
6563
- WooCommerce 5.0+ (if applicable)
66-
- Do not use features or functions that are not available in these versions.
64+
- Do not use features or functions that are deprecated or not available in these versions.
6765

6866
## Version Control and Documentation
6967

@@ -86,7 +84,7 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
8684
- Note: changelog.txt has been removed from this project. Only maintain readme.txt (for WordPress.org) and CHANGELOG.md (for developers).
8785
- Please do not skip these locations, as the changelog files must be in sync with each other, and the version numbers must be consistent across all files.
8886
- I will instruct you when to update the version number, and you should not do this automatically. Always ask for confirmation before updating the version number.
89-
- When the version number is updated, ensure that the new version number is reflected in all relevant files, including the plugin header, changelog files, and documentation files.
87+
- When the version number is updated, ensure that the new version number is reflected in all relevant files, as outlined in Version Locations above.
9088
- When the version number is updated, make special note to update the "Unreleased" section in the changelog files to reflect the new version number and a brief description of the changes made. This ensures that all changes are documented and easily accessible for future reference.
9189

9290
# General Coding Standards
@@ -132,7 +130,7 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
132130
- If you encounter a security vulnerability in the codebase, do not disclose it publicly. Instead, report it privately to the project maintainers or through a responsible disclosure process.
133131
- If you are unsure about the security implications of a specific code change, ask for clarification or guidance before proceeding.
134132
- Always follow the principle of least privilege when implementing security features, ensuring that users and processes have only the permissions they need to perform their tasks.
135-
- If you encounter a security vulnerability in a third-party library or dependency, check if there is an updated version that addresses the issue. If not, consider alternatives or report the vulnerability to the library maintainers.
133+
- If you encounter a security vulnerability in a third-party library or dependency, check if there is an updated version that addresses the issue. If not, consider alternatives and notify me of the situation.
136134
- If there is a possible security vulnerability in the codebase, you should always ask for confirmation before proceeding with any changes. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
137135
- If I ask you to make changes that could potentially introduce security vulnerabilities, you should always ask for confirmation before proceeding. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
138136

@@ -150,7 +148,6 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
150148
- Only ask for confirmation when an action is destructive (e.g., data loss, deletion)
151149
- Always attempt to identify and fix bugs automatically
152150
- Only ask for manual intervention if domain-specific knowledge is required
153-
- Auto-generate missing files, boilerplate, and tests when possible
154151
- Auto-lint and format code using standard tools (e.g., Prettier, ESLint, dotnet format)
155152
- Changes should be made directly to the file in question. Example: admin.php should be modified directly, not by creating a new file like admin-changes.php.
156153
- New files may be created when appropriate, but they should be relevant to the task at hand, so long as they are not a rewrite of an existing file. We want to avoid unnecessary duplication of files.

0 commit comments

Comments
 (0)