Skip to content

Feature/dotnet format ci#46

Merged
CritasWang merged 2 commits intofix_session_pool_leakfrom
feature/dotnet-format-ci
Feb 6, 2026
Merged

Feature/dotnet format ci#46
CritasWang merged 2 commits intofix_session_pool_leakfrom
feature/dotnet-format-ci

Conversation

@CritasWang
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 6, 2026 07:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces automated code formatting enforcement using dotnet format in the CI pipeline, replacing the previous pre-commit-based approach with a simpler, more direct solution. The changes standardize code style across the C# codebase according to .editorconfig rules.

Changes:

  • Simplified CI workflow by replacing Python/pre-commit setup with direct dotnet format command
  • Added Thrift-generated code exclusion in .editorconfig to prevent formatting checks on auto-generated files
  • Applied formatting fixes including using directive ordering and trailing whitespace cleanup
  • Added comprehensive documentation in both English and Chinese READMEs explaining formatting commands and CI requirements

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/pre-commit-format.yml Streamlined workflow to use dotnet format directly instead of pre-commit, reducing complexity and dependencies
.editorconfig Added exclusion for Thrift-generated code to prevent formatting checks on auto-generated files
README.md Added "Code Formatting" section documenting how to check and fix formatting locally
README_ZH.md Added Chinese translation of code formatting documentation
src/Apache.IoTDB/SessionPool.cs Applied formatting: reordered using directives (System.Security.Cryptography.X509Certificates moved to proper alphabetical position) and removed trailing whitespace
src/Apache.IoTDB/Rpc/TSStatusCode.cs Removed trailing whitespace at end of file
src/Apache.IoTDB/PoolHealthMetrics.cs Removed trailing whitespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CritasWang CritasWang merged commit 27441b1 into fix_session_pool_leak Feb 6, 2026
7 checks passed
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.

1 participant