-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add new analyzer rules #15620
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
Merged
Merged
Add new analyzer rules #15620
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
/azp list |
Collaborator
|
/azp run PowerShell-CI-windows |
|
Azure Pipelines successfully started running 1 pipeline(s). |
iSazonov
reviewed
Jun 21, 2021
9b1f814 to
ddea773
Compare
xtqqczze
commented
Jun 21, 2021
ddea773 to
0362cda
Compare
Enable [IL3002: Using member with RequiresAssemblyFilesAttribute can break functionality when embedded in a single-file app](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3002)
Enable [CA1418: Use valid platform string](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1418)
Enable [CA1839: Use 'Environment.ProcessPath'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1839)
Enable [CA1840: Use 'Environment.CurrentManagedThreadId'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1840)
Enable [CA1841: Prefer Dictionary.Contains methods](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1841)
Enable [CA1842: Do not use 'WhenAll' with a single task](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1842)
Enable [CA1843: Do not use 'WhenAll' with a single task](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1843)
Enable [CA1844: Provide memory-based overrides of async methods when subclassing 'Stream']((https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1844)
Enable [CA1845: Use span-based 'string.Concat'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1845)
Enable [CA1846: Prefer 'AsSpan' over 'Substring'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1846)
Enable [CA2250: Use 'ThrowIfCancellationRequested'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2250)
Enable [CA2251: Use 'string.Equals'](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2251)
Enable [IDE0100: RemoveRedundantEquality](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0100)
Enable [IDE0110: RemoveUnnecessaryDiscard](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0110)
Enable [IDE0120: SimplifyLINQExpression](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0120)
Enable [IDE0130: NamespaceDoesNotMatchFolderStructure](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0130)
Enable [IDE2000: MultipleBlankLines](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2000)
0362cda to
5032db3
Compare
Enable [IDE2001: EmbeddedStatementsMustBeOnTheirOwnLine](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2001)
Enable [IDE2002: ConsecutiveBracesMustNotHaveBlankLinesBetweenThem](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2002)
Enable [IDE2003: ConsecutiveStatementPlacement](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2003)
Enable [IDE2004: BlankLineNotAllowedAfterConstructorInitializerColon](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2004)
Contributor
Author
|
|
Collaborator
|
/azp run PowerShell-CI-macos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
iSazonov
reviewed
Jun 22, 2021
iSazonov
approved these changes
Jun 22, 2021
This was referenced Jun 22, 2021
rjmholt
approved these changes
Jun 23, 2021
|
🎉 Handy links: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CL-CodeCleanup
Indicates that a PR should be marked as a Code Cleanup change in the Change Log
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #15498