-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Use runtime formatting for ILLink #116941
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
Conversation
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 updates the ILLink codebase to use runtime formatting rules by removing the ILLink .editorconfig and running dotnet format over various projects. The key changes consist of converting tab-based indentation to space-based formatting, reformatting block constructs with consistent brace placement, and standardizing spacing across the code.
Reviewed Changes
Copilot reviewed 175 out of 1660 changed files in this pull request and generated no comments.
File | Description |
---|---|
WarningSuppressionWriter.cs | Reformatted control flow and block braces for runtime consistency |
UnconditionalSuppressMessageAttributeState.cs | Updated indentation and spacing in conditionals and loops |
TypeReferenceWalker.cs | Reformatted loops and conditionals to adhere to new formatting guidelines |
(and many more) | Similar formatting adjustments and whitespace cleanups across the codebase |
Tagging subscribers to this area: @dotnet/illink |
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.
Thank you!
Some of the .editorconfig changes weren't automatically fixed by dotnet format. Add back those rules for now so that this builds.
I was attempting to use copilot to make some ILLink changes and it was having trouble with the ILLink formatting conventions (in particular it was having trouble using tabs for indentation), so it seems like a good time to move over to the runtime formatting rules.
I deleted the ILLink .editorconfig and ran
dotnet format
over the various ILLink projects.edit: I added back the .editorconfig with a few settings that weren't fixed automatically by 'dotnet format' but are
enforced by the build.