diff --git a/distribution/dotnet7/.editorconfig b/distribution/dotnet7/.editorconfig index e0e4a01..621ee27 100644 --- a/distribution/dotnet7/.editorconfig +++ b/distribution/dotnet7/.editorconfig @@ -463,6 +463,7 @@ dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net dotnet_diagnostic.CA1068.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1068.md dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md +dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md dotnet_diagnostic.IDE0058.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0058.md diff --git a/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md b/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md new file mode 100644 index 0000000..8345d6f --- /dev/null +++ b/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md @@ -0,0 +1,21 @@ +# Rule adding suggestion - Decision + +### Rule summary + +| | Value | +| ----------- |------------------------------------------------| +| Title | IDE0005 Remove unnecessary using directives | +| CheckId | IDE0005 | +| Category | Style | +| Link | https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005 | + +### What is the problem +This rule detects unused usings which can simply be removed. This rule is currently not a part of our coding rules and it should be. + +### Decision + +We update the `root/.editorconfig` with `severity = warning` and a doc-link. + +### Reason & arguments + +* This rule detects code that can be removed and no code is better than no code - see dissuction in [Issue #74](https://github.com/atc-net/atc-coding-rules/issues/74).