File tree 4 files changed +2
-7
lines changed
src/PowerShellEditorServices/Services/TextDocument
PowerShellEditorServices.Test/Session
PowerShellEditorServices.Test.Shared/TestUtilities
4 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ dotnet_diagnostic.CS0414.severity = error
25
25
dotnet_diagnostic.CA2007.severity = error
26
26
# CA1822: Mark members as static
27
27
dotnet_diagnostic.CA1822.severity = error
28
+ # CA1823: Avoid unused private fields
29
+ dotnet_diagnostic.CA1823.severity = error
28
30
# All maintainability issues (dead code etc.)
29
31
# See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/maintainability-warnings
30
32
dotnet_analyzer_diagnostic.category-Maintainability.severity = error
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Services.TextDocument
14
14
/// </summary>
15
15
internal static class TokenOperations
16
16
{
17
- // Region kinds to align with VSCode's region kinds
18
- private const string RegionKindComment = "comment" ;
19
- private const string RegionKindRegion = "region" ;
20
17
private static readonly FoldingRangeKind ? RegionKindNone = null ;
21
18
22
19
// These regular expressions are used to match lines which mark the start and end of region comment in a PowerShell
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Test.Shared
14
14
/// </summary>
15
15
public static class TestUtilities
16
16
{
17
- private static readonly char [ ] s_unixPathSeparators = new [ ] { '/' } ;
18
-
19
17
private static readonly char [ ] s_unixNewlines = new [ ] { '\n ' } ;
20
18
21
19
/// <summary>
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Test.Session
14
14
{
15
15
public class WorkspaceTests
16
16
{
17
- private static readonly Version PowerShellVersion = new Version ( "5.0" ) ;
18
-
19
17
private static readonly Lazy < string > s_lazyDriveLetter = new Lazy < string > ( ( ) => Path . GetFullPath ( "\\ " ) . Substring ( 0 , 1 ) ) ;
20
18
21
19
public static string CurrentDriveLetter => RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
You can’t perform that action at this time.
0 commit comments