enhancing clarity in research assessment and problem description sections.

some files rename
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-12-07 22:50:25 +02:00
parent e7c8e31d79
commit d5c036e6f7
72 changed files with 358 additions and 484 deletions
+18
View File
@@ -0,0 +1,18 @@
---
description: Coding
alwaysApply: false
---
- Use collection expressions for collection initialization
- Non-derived "private" classes and records should be "sealed"
- In tests Use 'Assert.ThrowsExactly' instead of 'Assert.ThrowsException'
- Parameter names should match base declaration and other partial definitions
- Exceptions should be either logged or rethrown but not both
- Exceptions should not be thrown from property getters
- A Route attribute should be added to the controller when a route template is specified at the action level
- "Thread.Sleep" should not be used in tests
- Maintain consistent whitespace formatting with blank lines between logical code blocks
- Cognitive Complexity of methods should not be too high
- Avoid constant arrays as arguments
- Server-side requests should not be vulnerable to traversing attacks
- String literals should not be duplicated
- Value type property used as input in a controller action should be nullable, required or annotated with the JsonRequiredAttribute to avoid under-posting