Skip to content

Style cleanup#52751

Merged
tmat merged 2 commits intodotnet:release/10.0.3xxfrom
tmat:MiscCleanup
Feb 2, 2026
Merged

Style cleanup#52751
tmat merged 2 commits intodotnet:release/10.0.3xxfrom
tmat:MiscCleanup

Conversation

@tmat
Copy link
Member

@tmat tmat commented Jan 30, 2026

Cleans up diagnostics reported when building in Aspire repo: dotnet/aspire#14259

Copilot AI review requested due to automatic review settings January 30, 2026 18:30
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 performs style cleanup across multiple files in the BuiltInTools/Watch and HotReloadClient projects, focusing on code formatting, documentation fixes, and minor code improvements.

Changes:

  • Removed UTF-8 BOM markers and extra blank lines from several source files
  • Fixed XML documentation tags and removed trailing whitespace
  • Simplified lambda expressions to method group references
  • Added nullable type annotation to OSSpecificPathComparer
  • Removed redundant field initializer and added readonly modifier
  • Added Microsoft.Extensions.DependencyInjection.Abstractions package reference

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/BuiltInTools/Watch/Utilities/PathUtilities.cs Changed IEqualityComparer<string> to IEqualityComparer<string?> for better nullability handling
src/BuiltInTools/Watch/Process/RunningProject.cs Removed UTF-8 BOM and extra blank line
src/BuiltInTools/Watch/Process/ProcessSpec.cs Removed extra blank line, redundant = false initialization, and fixed XML documentation tag
src/BuiltInTools/Watch/Process/ProcessRunner.cs Removed UTF-8 BOM and extra blank line
src/BuiltInTools/Watch/Microsoft.DotNet.HotReload.Watch.csproj Removed trailing whitespace from comment
src/BuiltInTools/Watch/HotReload/HotReloadEventSource.cs Removed extra blank line
src/BuiltInTools/Watch/HotReload/HotReloadDotNetWatcher.cs Removed BOM, simplified three lambda expressions to method group references
src/BuiltInTools/Watch/HotReload/CompilationHandler.cs Removed BOM, removed outdated comment reference, simplified lambda to method group
src/BuiltInTools/Watch/FileWatcher/PollingDirectoryWatcher.cs Added readonly modifier to _pollingThread field, simplified lambda to method group
src/BuiltInTools/Watch/FileWatcher/FileWatcher.cs Simplified lambda expression to method group reference
src/BuiltInTools/Watch/Context/DotNetWatchContext.cs Removed extra blank line
src/BuiltInTools/Watch/Build/ProjectNodeMap.cs Removed UTF-8 BOM and extra blank line
src/BuiltInTools/Watch/Build/ProjectGraphFactory.cs Removed BOM, fixed XML documentation tag from <see cref> to <paramref>
src/BuiltInTools/Watch/Build/FileItem.cs Removed UTF-8 BOM and extra blank line
src/BuiltInTools/HotReloadClient/Microsoft.DotNet.HotReload.Client.Package.csproj Added Microsoft.Extensions.DependencyInjection.Abstractions package reference

@tmat
Copy link
Member Author

tmat commented Jan 30, 2026

@DustinCampbell @MichaelSimons ptal

Copy link
Member

@MichaelSimons MichaelSimons left a comment

Choose a reason for hiding this comment

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

Changes look good. Can you explain why the Microsoft.Extensions.DependencyInjection.Abstractions dependency was added? I am not drawing a connection to style cleanup.

@tmat
Copy link
Member Author

tmat commented Feb 2, 2026

It's a dependency of Microsoft.Extensions.Logging.Abstractions which we already reference. but nuget restore in Aspire repo wanted me to add it explicitly. Likely because they already have this dependency and it was conflicting version or something.

@tmat tmat merged commit 5a22127 into dotnet:release/10.0.3xx Feb 2, 2026
26 checks passed
@tmat tmat deleted the MiscCleanup branch February 2, 2026 23:23
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.

3 participants