Skip to content

Commit 30bfdb7

Browse files
committed
Treat all maintainability issues as errors
1 parent 4d73c2c commit 30bfdb7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dotnet_diagnostic.CS0414.severity = error
2525
dotnet_diagnostic.CA2007.severity = error
2626
# CA1822: Mark members as static
2727
dotnet_diagnostic.CA1822.severity = error
28+
# All maintainability issues (dead code etc.)
29+
# See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/maintainability-warnings
30+
dotnet_analyzer_diagnostic.category-Maintainability.severity = error
2831
# VSTHRD002: Synchronously waiting on tasks or awaiters may cause deadlocks
2932
# TODO: Fix all of these issues and explicitly ignore the intentional ones.
3033
dotnet_diagnostic.VSTHRD002.severity = silent

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHost.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal class ConsoleColorProxy
8383

8484
internal ConsoleColorProxy(EditorServicesPSHostUserInterface hostUserInterface)
8585
{
86-
if (hostUserInterface == null) throw new ArgumentNullException("hostUserInterface");
86+
if (hostUserInterface == null) throw new ArgumentNullException(nameof(hostUserInterface));
8787
_hostUserInterface = hostUserInterface;
8888
}
8989

0 commit comments

Comments
 (0)