Skip to content
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

Copy DotSettings CodeInspections from osu! sln #5444

Merged
merged 8 commits into from
Oct 6, 2022

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Oct 4, 2022

Most of the inspections were weaker in o!f, except UnusedParameter.Local which lowered from warning to hint.

Comment on lines 65 to 66
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertClosureToMethodGroup/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertClosureToMethodGroup/@EntryIndexedValue">WARNING</s:String>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one is intentional, because for high performance scenarios using method groups will allocate the delegate every time whereas a closure won't (as backwards as that sounds).

This was documented here: dotnet/roslyn#5835 and will be fixed in .NET 7. I'd prefer this remains until that point.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 5, 2022
@smoogipoo smoogipoo merged commit 478c9a7 into ppy:master Oct 6, 2022
@Susko3 Susko3 deleted the sync-dotsettings-with-osu branch October 6, 2022 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants