Enable unnecessary code rules#799
Conversation
|
|
|
Welcome @stan-sz! |
* CA1823 Avoid unused private fields * CA1847 Use string.Contains(char) instead of string.Contains(string) with single characters * IDE0005 Remove unnecessary import * IDE0051 Private member is unused * IDE0052 Private member is unread
|
/assign tg123 |
|
/LGTM |
| # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/unnecessary-code-rules | ||
|
|
||
| # Avoid unused private fields | ||
| dotnet_diagnostic.CA1823.severity = error |
There was a problem hiding this comment.
Maybe better add a document link
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
|
/lgtm Thanks! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, stan-sz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: #798