-
Notifications
You must be signed in to change notification settings - Fork 831
[repo] Enable analysis globally #6344
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #6344 +/- ##
==========================================
- Coverage 86.69% 86.68% -0.02%
==========================================
Files 258 258
Lines 11879 11879
==========================================
- Hits 10299 10297 -2
- Misses 1580 1582 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -37,7 +37,9 @@ public static IServiceCollection AddDedicatedLogging( | |||
return services; | |||
} | |||
|
|||
#pragma warning disable CA1812 // Avoid uninstantiated internal classes |
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.
nit: in a follow up PR; consider disabling these warnings for the entire docs directory or in the csproj file. The goal being to keep the examples simple.
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.
I think analysis should be disabled or significantly reduced for the docs and maybe the examples directory. They're purely for instructional purposes. All the #pragma
s and #if
s add noise that are not relevant to understanding the examples.
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.
Removed all new ifs/pragmas from the documentation code.
Issues are moted granularly, per project.
…emetry-dotnet into analysis-globally
Fixes #3958
Changes
Last commit related to enforcing analysis level across all projects.
Includes changes for samples, I missed it previosly.
Merge requirement checklist
[ ] Unit tests added/updated[ ] AppropriateCHANGELOG.md
files updated for non-trivial changes[ ] Changes in public API reviewed (if applicable)