Skip to content

Conversation

@sevenc-nanashi
Copy link

Closes #1652 .
This PR adds dotnet format --verify-no-changes in CI, and formats all files.

Copilot AI review requested due to automatic review settings August 10, 2025 23:45
Comment on lines +57 to +60
// [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);
// }
Copy link
Author

@sevenc-nanashi sevenc-nanashi Aug 10, 2025

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.

@sevenc-nanashi sevenc-nanashi changed the title feat: install formatter ci: install formatter Aug 10, 2025
Copy link
Contributor

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 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

@sevenc-nanashi sevenc-nanashi marked this pull request as draft August 11, 2025 00:03
@sevenc-nanashi sevenc-nanashi marked this pull request as ready for review August 11, 2025 23:33
@sevenc-nanashi
Copy link
Author

Ready for review.

@stakira
Copy link
Owner

stakira commented Nov 6, 2025

It's a bit too disruptive to reformat everything at this point..

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.

Install and force formatter

2 participants