microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
collections/coding-standards.collection.md
15lines · modecode
| 1 | Enforce language-specific coding conventions and best practices across your projects, with pre-PR code review agents for catching functional defects early. This collection provides instructions for bash, Bicep, C#, PowerShell, Python, Rust, and Terraform that are automatically applied based on file patterns, plus agents that review branch diffs before opening pull requests. |
| 2 | |
| 3 | This collection includes: |
| 4 | |
| 5 | - **Functional Code Review** — Pre-PR branch diff reviewer for functional correctness, error handling, edge cases, and testing gaps |
| 6 | |
| 7 | Instructions for: |
| 8 | |
| 9 | - **Bash** — Shell scripting conventions and best practices |
| 10 | - **Bicep** — Infrastructure as code implementation standards |
| 11 | - **C#** — Code and test conventions including nullable reference types, async patterns, and xUnit testing |
| 12 | - **PowerShell** — Script and module conventions including comment-based help, CmdletBinding, PSScriptAnalyzer compliance, and copyright headers |
| 13 | - **Python** — Scripting implementation with type hints, docstrings, uv project management, and pytest testing |
| 14 | - **Rust** — Rust development conventions targeting the 2021 edition |
| 15 | - **Terraform** — Infrastructure as code with provider configuration and module structure |
| 16 | |