Calculate closures correctly (#309)
* Maybe really fixes closures * fornat * add ai generated tests * fix tests * fix tests * added test with correct number of closures? * closures are self contained. don't increment on attached properties * format * MergeClosure should reuse if exists, not just set * add not null on a method
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Coding standards, domain knowledge, and preferences that AI should follow
|
||||
|
||||
## C# Coding Standards
|
||||
|
||||
- Use the csharpier formatter for formatting C# code.
|
||||
- Use the .editorconfig file for code style settings.
|
||||
- Always use `var` when the type is obvious from the right side of the assignment.
|
||||
- Always add braces for `if`, `else`, `for`, `foreach`, `while`, and `do` statements, even if they are single-line statements.
|
||||
|
||||
## Testing
|
||||
|
||||
- Use xUnit for unit testing.
|
||||
- Use FluentAssertions for assertions in tests.
|
||||
- Use Moq for mocking dependencies in tests.
|
||||
@@ -0,0 +1,22 @@
|
||||
# Git Commit Instructions
|
||||
|
||||
To ensure high-quality and consistent commits, please follow these guidelines:
|
||||
|
||||
1. **Format your code**
|
||||
- Run the `csharpier` formatter on all C# files before committing.
|
||||
- Ensure your code adheres to the `.editorconfig` settings.
|
||||
|
||||
2. **Write clear commit messages**
|
||||
- Use the present tense ("Add feature" not "Added feature").
|
||||
- Start with a short summary (max 72 characters), followed by a blank line and a detailed description if necessary.
|
||||
|
||||
3. **Test your changes**
|
||||
- Run all unit tests before committing.
|
||||
- Add or update xUnit tests as needed.
|
||||
- Use FluentAssertions for assertions and Moq for mocking in tests.
|
||||
|
||||
4. **Review your changes**
|
||||
- Double-check for accidental debug code or commented-out code.
|
||||
- Ensure only relevant files are staged.
|
||||
|
||||
Thank you for helping maintain code quality!
|
||||
Reference in New Issue
Block a user