-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Refactor : Enable CA2249 #40009
Refactor : Enable CA2249 #40009
Conversation
1. Enables CA2249 2. formatted `.editorconfig`
.editorconfig
Outdated
@@ -259,52 +262,79 @@ dotnet_diagnostic.IDE2000.severity = warning | |||
[{eng/tools/**.cs,**/{test,samples,perf}/**.cs}] | |||
# CA1018: Mark attributes with AttributeUsageAttribute | |||
dotnet_diagnostic.CA1018.severity = suggestion | |||
|
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.
Could you undo this? The spaces were meant to make comments or description much clearer, but these are all suppressions for tests which don't need that.
.editorconfig
Outdated
@@ -77,6 +77,9 @@ charset = utf-8-bom | |||
|
|||
[*.{cs,vb}] | |||
|
|||
# CA2249: Use string.Contains instead of string.IndexOf to improve readability. | |||
dotnet_diagnostic.CA2249.severity = warning |
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.
Can you order it so it appears around line 215 in this file?
Thanks, @pranavkm taking care of it. Sorry for the delay from my side. I guess we live in totally opposite timezone, I am in India! But anyway thanks for taking care and merging! |
Hi @ShreyasJejurkar. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
.editorconfig
Contributes to #24055