This is an automated email from the ASF dual-hosted git repository.

freeandnil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git


The following commit(s) were added to refs/heads/master by this push:
     new e2f4ff4d add copilot instructions
e2f4ff4d is described below

commit e2f4ff4d5ee5ea95e15cf4cdb8ff2923d5225fb9
Author: Jan Friedrich <[email protected]>
AuthorDate: Thu Apr 16 16:44:07 2026 +0200

    add copilot instructions
---
 src/.github/copilot-instructions.md | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/.github/copilot-instructions.md 
b/src/.github/copilot-instructions.md
new file mode 100644
index 00000000..da27d79e
--- /dev/null
+++ b/src/.github/copilot-instructions.md
@@ -0,0 +1,20 @@
+# Copilot Instructions
+
+## Test Conventions
+- Prefer test method names without underscores
+- create XML comments for test methods
+- use Arrange, Act and Assert comments only for tests that are larger than 25 
lines
+- try to keep the tests short and maintainable (under 25 lines)
+
+## C# Style
+
+- **No `var`** - always use the explicit type on the left side; use implicit 
`new()` on the right side
+  ```csharp
+  // correct
+  MemberInfo member = GetMember<NoAttributes>(nameof(NoAttributes.Value));
+  ReflectionTestClass target = new();
+
+  // wrong
+  var member = GetMember<NoAttributes>(nameof(NoAttributes.Value));
+  ```
+- prefer expression collection syntax (\[item1, item2\]) over new string\[\] { 
item1, item2 }

Reply via email to