Skip to content

Add code style rules and enforce them at build time#182

Closed
Copilot wants to merge 1 commit intou/xiaoyun/formattingfrom
copilot/sub-pr-153
Closed

Add code style rules and enforce them at build time#182
Copilot wants to merge 1 commit intou/xiaoyun/formattingfrom
copilot/sub-pr-153

Conversation

Copy link
Contributor

Copilot AI commented Nov 23, 2025

Adds comprehensive code style enforcement to ensure consistency across the codebase.

Changes

  • .editorconfig: Configure Roslyn analyzers for:

    • Copyright headers (IDE0073)
    • Unused using removal (IDE0005)
    • Readonly modifier enforcement (IDE0044)
    • Code formatting (IDE0055)
    • C# formatting rules (braces, spacing, indentation)
  • Directory.Build.props: Enable build-time enforcement with EnforceCodeStyleInBuild and CodeAnalysisTreatWarningsAsErrors

  • All .cs files: Add copyright headers and remove unused imports to comply with new rules

All files now use 4-space indentation (2 spaces for .csproj, .json, .yml) with CRLF line endings.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 23, 2025
Copilot AI mentioned this pull request Nov 23, 2025
Copilot AI changed the title [WIP] Add code style rules for RazorConsole project Add code style rules and enforce them at build time Nov 23, 2025
Copilot AI requested a review from ParadiseFallen November 23, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants