C# coding standards for Project KONGOR - British English, explicit types, uppercase acronyms, PascalCase/camelCase conventions, and strict formatting rules
Enforce Project KONGOR's C# coding standards including British English, explicit type usage, acronym casing rules, lambda formatting, and comprehensive syntax conventions.
**Type Keywords**
**Acronym Casing**
**Lambda Parameters**
**Async Methods**
**Indentation & Whitespace**
**Switch Expressions**
```csharp
return UserType switch
{
UserType.Staff => "internal",
UserType.Client => "external",
_ => throw new ArgumentOutOfRangeException($"Unsupported User Type \"{UserType}\"")
};
```
**Comments**
**XML Documentation**
```csharp
/// <summary>
/// This method retrieves user information based on the provided user ID.
/// It does so by using the "request" variable from the HTTP handler.
/// </summary>
```
**Null Handling**
- Entity Framework `Include`/`ThenInclude` for navigation properties
- Assigning `null!` when unavoidable and runtime null is impossible
**Using Directives**
```csharp
global using Aspire.Hosting;
global using Microsoft.Extensions.DependencyInjection;
```
1. **Correctness**: Ensure syntactically correct code adhering to language best practices
2. **Performance**: Optimize for efficiency unless readability suffers significantly
3. **Security**: Follow best practices to prevent injection attacks, data leaks, unauthorized access
4. **Consistency**: Match existing codebase style, conventions, and architecture
5. **Simplicity**: Prefer clarity over complexity - avoid over-engineering
6. **Targeted**: Keep code focused on objectives without unnecessary features
7. **Minimalism**: Avoid unnecessary abstractions or components
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/kongor-c-coding-standards/raw