-
Notifications
You must be signed in to change notification settings - Fork 413
ci: install formatter #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ci: install formatter #1655
Conversation
| // [Theory] | ||
| // public void SyllableTest(string lyric, string hint, string[] aliases) { | ||
| // RunPhonemizeTest("en_arpa-plus", new NoteParams[] { new NoteParams { lyric = lyric, hint = hint, tone = "C3", phonemes = SamePhonemeParams(4, 0, 0, "") } }, aliases); | ||
| // } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines caused dotnet format --verify-no-changes to fail because there are no test cases, so I commented this out.
There was a problem hiding this 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 adds a .NET formatter to the CI pipeline and applies automatic formatting to all source files in the OpenUtau project. The primary purpose is to ensure consistent code formatting across the codebase by running dotnet format --verify-no-changes in CI.
- Adds automated code formatting verification to CI pipeline
- Applies standardized formatting to all C# source files
- Reorganizes using statements in alphabetical order across the codebase
Reviewed Changes
Copilot reviewed 95 out of 197 changed files in this pull request and generated 21 comments.
Show a summary per file
| File | Description |
|---|---|
| Multiple .cs files | Reorganized using statements alphabetically and applied consistent brace formatting |
| OpenUtau/Views/*.axaml.cs | Reordered imports and standardized code formatting |
| OpenUtau/ViewModels/*.cs | Applied consistent formatting and import organization |
| OpenUtau/Controls/*.cs | Standardized braces placement and import ordering |
| OpenUtau.Plugin.Builtin/*.cs | Consistent formatting applied across phonemizer classes |
| OpenUtau.Core/*.cs | Applied standard formatting to core library files |
| OpenUtau.Test/*.cs | Formatted test files with consistent style |
|
Ready for review. |
|
It's a bit too disruptive to reformat everything at this point.. |
Closes #1652 .
This PR adds
dotnet format --verify-no-changesin CI, and formats all files.