GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix minor style issues come from last commits (#9640) · PowerShell/PowerShell@7e423e7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • Microsoft.PowerShell.Commands.Management/commands/management
      • Eventlog.cs
      • Process.cs
    • Microsoft.PowerShell.ConsoleHost/host/msh
      • ConsoleControl.cs
    • System.Management.Automation
      • engine
        • Attributes.cs
        • hostifaces
          • RunspaceInit.cs
        • parser
          • tokenizer.cs
        • remoting
          • commands
            • NewPSSessionConfigurationOptionCommand.cs
          • common
            • PSSessionConfigurationTypeOption.cs
            • RunspaceInitInfo.cs
      • utils/tracing
        • TracingGen.cs
  • test/tools/WebListener
    • Startup.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs‎

Copy file name to clipboardExpand all lines: src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using System.Collections;
66
using System.Collections.Generic;
77
using System.ComponentModel; // Win32Exception
8-
using System.Diagnostics.CodeAnalysis;
98
using System.Diagnostics; // Eventlog class
9+
using System.Diagnostics.CodeAnalysis;
1010
using System.Management.Automation;
1111
using System.Management.Automation.Internal;
1212

Collapse file

‎src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs‎

Copy file name to clipboardExpand all lines: src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.Collections.Generic;
77
using System.Collections.Specialized;
88
using System.ComponentModel; // Win32Exception
9-
using System.Diagnostics.CodeAnalysis;
109
using System.Diagnostics; // Process class
10+
using System.Diagnostics.CodeAnalysis;
1111
using System.IO;
1212
using System.Management.Automation;
1313
using System.Management.Automation.Internal;
Collapse file

‎src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs‎

Copy file name to clipboardExpand all lines: src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ private static void BuildEdgeTypeInfo(
11781178
firstRightLeadingRow = r;
11791179
}
11801180

1181-
for (; ; )
1181+
while (true)
11821182
{
11831183
r++;
11841184
if (r > contentsRegion.Bottom)
Collapse file

‎src/System.Management.Automation/engine/Attributes.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/Attributes.cs
+10-6Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ public string HelpMessageResourceId
737737
/// This is primarily to be used in functions that are implementing the logic for dynamic keywords.
738738
/// </summary>
739739
public bool DontShow { get; set; }
740-
741740
}
742741

743742
/// <summary>
@@ -1093,7 +1092,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind)
10931092
"ValidationRangeElementType",
10941093
innerException: null,
10951094
Metadata.ValidateRangeElementType,
1096-
element.GetType().Name, typeof(int).Name);
1095+
element.GetType().Name,
1096+
typeof(int).Name);
10971097
}
10981098

10991099
object resultValue;
@@ -1114,7 +1114,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind)
11141114
"ValidationRangeElementType",
11151115
null,
11161116
Metadata.ValidateRangeElementType,
1117-
element.GetType().Name, commonType.Name);
1117+
element.GetType().Name,
1118+
commonType.Name);
11181119
}
11191120

11201121
switch (rangeKind)
@@ -1181,7 +1182,8 @@ private void ValidateRange(object element)
11811182
"ValidationRangeElementType",
11821183
null,
11831184
Metadata.ValidateRangeElementType,
1184-
element.GetType().Name, MinRange.GetType().Name);
1185+
element.GetType().Name,
1186+
MinRange.GetType().Name);
11851187
}
11861188
}
11871189

@@ -1192,7 +1194,8 @@ private void ValidateRange(object element)
11921194
"ValidateRangeTooSmall",
11931195
null,
11941196
Metadata.ValidateRangeSmallerThanMinRangeFailure,
1195-
element.ToString(), MinRange.ToString());
1197+
element.ToString(),
1198+
MinRange.ToString());
11961199
}
11971200

11981201
if (_maxComparable.CompareTo(element) < 0)
@@ -1201,7 +1204,8 @@ private void ValidateRange(object element)
12011204
"ValidateRangeTooBig",
12021205
null,
12031206
Metadata.ValidateRangeGreaterThanMaxRangeFailure,
1204-
element.ToString(), MaxRange.ToString());
1207+
element.ToString(),
1208+
MaxRange.ToString());
12051209
}
12061210
}
12071211

Collapse file

‎src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
54
using Dbg = System.Management.Automation.Diagnostics;
65
using DWORD = System.UInt32;
76

Collapse file

‎src/System.Management.Automation/engine/parser/tokenizer.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/parser/tokenizer.cs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4624,6 +4624,7 @@ internal Token NextToken()
46244624
{
46254625
NormalizeCRLF(c1);
46264626
}
4627+
46274628
if (c1 == '\n' || c1 == '\r')
46284629
{
46294630
NewToken(TokenKind.LineContinuation);
Collapse file

‎src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ internal WSManConfigurationOption()
6565
}
6666

6767
/// <summary>
68-
/// LoadFromDefaults.
68+
/// Override LoadFromDefaults method.
6969
/// </summary>
70-
/// <param name="keepAssigned"></param>
70+
/// <param name="keepAssigned">Keep old values.</param>
7171
protected internal override void LoadFromDefaults(bool keepAssigned)
7272
{
7373
if (!keepAssigned || !_outputBufferingMode.HasValue)
Collapse file

‎src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ internal virtual Hashtable ConstructQuotasAsHashtable()
8686
/// If keepAssigned is true only those values are set
8787
/// which are unassigned.
8888
/// </summary>
89-
/// <param name="keepAssigned"></param>
89+
/// <param name="keepAssigned">Keep old values.</param>
9090
protected internal virtual void LoadFromDefaults(bool keepAssigned)
9191
{
9292
throw new NotImplementedException();
Collapse file

‎src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
54
using Dbg = System.Management.Automation.Diagnostics;
65

76
namespace System.Management.Automation.Remoting

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.