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

perf: Enable CA1805 analyzer and fix violations #6892

Merged
merged 15 commits into from
Sep 2, 2022

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Aug 27, 2021

Analyzer documentation.

GitHub Issue (If applicable): part of #6882

PR Type

What kind of change does this PR introduce?

  • Performance
  • Build or CI related changes

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@Youssef1313 Youssef1313 requested a review from a team August 27, 2021 13:32
@gitpod-io
Copy link

gitpod-io bot commented Aug 27, 2021

Copy link
Member Author

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

@jeromelaban Is is more manageable to review or do you want to break it more smaller?

@Youssef1313 Youssef1313 marked this pull request as draft August 27, 2021 14:29
@Youssef1313 Youssef1313 force-pushed the issues/6682-ca1805 branch 3 times, most recently from f7914fa to 1122c9d Compare August 27, 2021 15:12
.editorconfig Outdated Show resolved Hide resolved
@Youssef1313 Youssef1313 force-pushed the issues/6682-ca1805 branch 22 times, most recently from d74193d to 1905483 Compare August 29, 2021 08:22
@Youssef1313 Youssef1313 reopened this Aug 24, 2022
@Youssef1313 Youssef1313 marked this pull request as draft August 24, 2022 08:34
src/Uno.UI/Helpers/WinUI/SharedHelpers.cs Show resolved Hide resolved
src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs Outdated Show resolved Hide resolved
@Youssef1313
Copy link
Member Author

Build failure is likely due to increased build time with the addition of analyzers. I'll see if I can track down if there is a specific analyzer causing that.

@jeromelaban
Copy link
Member

It may be caused by the analyzers, but yesterday's builds were particularly slow so it may be unrelated.

@Youssef1313
Copy link
Member Author

@jeromelaban

Security analyzers are a bit slow because they do heavy data-flow analysis, and CA1041 is a bit slow too dotnet/roslyn-analyzers#6143

I'll disable security analyzers and keep CA1041 enabled. If it remains slow, I'll disable CA1041 too.

@Youssef1313 Youssef1313 marked this pull request as ready for review September 2, 2022 07:17
@jeromelaban jeromelaban merged commit c3a6581 into unoplatform:master Sep 2, 2022
@Youssef1313 Youssef1313 deleted the issues/6682-ca1805 branch September 2, 2022 13:01
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.

None yet

4 participants