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

Refactor : Enable CA2249 #40009

Merged
merged 7 commits into from
Feb 5, 2022
Merged

Refactor : Enable CA2249 #40009

merged 7 commits into from
Feb 5, 2022

Conversation

ShreyasJejurkar
Copy link
Contributor

@ShreyasJejurkar ShreyasJejurkar commented Feb 5, 2022

  1. Enables CA2249
  2. formatted .editorconfig

Contributes to #24055

1. Enables CA2249
2. formatted `.editorconfig`
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Feb 5, 2022
.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

Copy link
Contributor

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
Copy link
Contributor

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?

src/Http/Http.Abstractions/src/HostString.cs Outdated Show resolved Hide resolved
src/Middleware/Rewrite/src/RewriteRule.cs Outdated Show resolved Hide resolved
src/Middleware/Rewrite/src/UrlActions/RewriteAction.cs Outdated Show resolved Hide resolved
src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs Outdated Show resolved Hide resolved
src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs Outdated Show resolved Hide resolved
@mkArtakMSFT mkArtakMSFT added area-runtime area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Feb 5, 2022
@mkArtakMSFT mkArtakMSFT added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates area-runtime labels Feb 5, 2022
@pranavkm pranavkm merged commit a708a5a into dotnet:main Feb 5, 2022
@ghost ghost added this to the 7.0-preview2 milestone Feb 5, 2022
@ShreyasJejurkar ShreyasJejurkar deleted the CA2249 branch February 6, 2022 06:05
@ShreyasJejurkar
Copy link
Contributor Author

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!

@ghost
Copy link

ghost commented Feb 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants