-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Enable several recently added analyzers #116881
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 pull request enables several recently added analyzers. It updates regex matching logic in linker XML processing files to use Regex.IsMatch, inserts logging code blocks in multiple hosting lifetime implementations, and revises analyzer settings in the global configuration.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/tools/illink/src/linker/Linker.Steps/ProcessLinkerXmlBase.cs | Replaces regex.Match(...).Success with regex.IsMatch for improved clarity. |
src/libraries/Microsoft.Extensions.Hosting/src/Internal/ConsoleLifetime.cs | Wraps logging calls within a new if block in OnApplicationStarted. |
src/libraries/Microsoft.Extensions.Hosting.WindowsServices/src/WindowsServiceLifetime.cs | Adds braces to enclose logging within the ApplicationStarted registration. |
src/libraries/Microsoft.Extensions.Hosting.Systemd/src/SystemdLifetime.cs | Similar update to enclose logging calls within a conditional block. |
src/coreclr/tools/Common/Compiler/ProcessLinkerXmlBase.cs | Replaces regex.Match(...).Success with regex.IsMatch for consistent behavior. |
eng/CodeAnalysis.src.globalconfig | Updates analyzer comments and enables additional analyzers with new severities. |
483447c
to
3b73682
Compare
3b73682
to
bfc530b
Compare
bfc530b
to
d10159e
Compare
d10159e
to
9444775
Compare
No description provided.