GeezerVison is showing github.com — Fix minor style issues come from last commits (#9640) · PowerShell/PowerShell@7e423e7
File treeExpand file treeCollapse file tree Open diff view settings Microsoft.PowerShell.Commands.Management/commands/management Microsoft.PowerShell.ConsoleHost/host/msh System.Management.Automation
Expand file treeCollapse file tree Open diff view settings Collapse file 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 number | Diff line number | Diff line change |
|---|
| 5 | 5 | using System.Collections; | 6 | 6 | using System.Collections.Generic; | 7 | 7 | using System.ComponentModel; // Win32Exception | 8 | | -using System.Diagnostics.CodeAnalysis; | 9 | 8 | using System.Diagnostics; // Eventlog class | | 9 | +using System.Diagnostics.CodeAnalysis; | 10 | 10 | using System.Management.Automation; | 11 | 11 | using System.Management.Automation.Internal; | 12 | 12 |
| |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 6 | 6 | using System.Collections.Generic; | 7 | 7 | using System.Collections.Specialized; | 8 | 8 | using System.ComponentModel; // Win32Exception | 9 | | -using System.Diagnostics.CodeAnalysis; | 10 | 9 | using System.Diagnostics; // Process class | | 10 | +using System.Diagnostics.CodeAnalysis; | 11 | 11 | using System.IO; | 12 | 12 | using System.Management.Automation; | 13 | 13 | using System.Management.Automation.Internal; | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -1178,7 +1178,7 @@ private static void BuildEdgeTypeInfo( | 1178 | 1178 | firstRightLeadingRow = r; | 1179 | 1179 | } | 1180 | 1180 |
| 1181 | | - for (; ; ) | | 1181 | + while (true) | 1182 | 1182 | { | 1183 | 1183 | r++; | 1184 | 1184 | if (r > contentsRegion.Bottom) | |
Collapse file Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/Attributes.cs +10-6Lines changed: 10 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -737,7 +737,6 @@ public string HelpMessageResourceId | 737 | 737 | /// This is primarily to be used in functions that are implementing the logic for dynamic keywords. | 738 | 738 | /// </summary> | 739 | 739 | public bool DontShow { get; set; } | 740 | | - | 741 | 740 | } | 742 | 741 |
| 743 | 742 | /// <summary> | @@ -1093,7 +1092,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind) | 1093 | 1092 | "ValidationRangeElementType", | 1094 | 1093 | innerException: null, | 1095 | 1094 | Metadata.ValidateRangeElementType, | 1096 | | - element.GetType().Name, typeof(int).Name); | | 1095 | + element.GetType().Name, | | 1096 | + typeof(int).Name); | 1097 | 1097 | } | 1098 | 1098 |
| 1099 | 1099 | object resultValue; | @@ -1114,7 +1114,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind) | 1114 | 1114 | "ValidationRangeElementType", | 1115 | 1115 | null, | 1116 | 1116 | Metadata.ValidateRangeElementType, | 1117 | | - element.GetType().Name, commonType.Name); | | 1117 | + element.GetType().Name, | | 1118 | + commonType.Name); | 1118 | 1119 | } | 1119 | 1120 |
| 1120 | 1121 | switch (rangeKind) | @@ -1181,7 +1182,8 @@ private void ValidateRange(object element) | 1181 | 1182 | "ValidationRangeElementType", | 1182 | 1183 | null, | 1183 | 1184 | Metadata.ValidateRangeElementType, | 1184 | | - element.GetType().Name, MinRange.GetType().Name); | | 1185 | + element.GetType().Name, | | 1186 | + MinRange.GetType().Name); | 1185 | 1187 | } | 1186 | 1188 | } | 1187 | 1189 |
| @@ -1192,7 +1194,8 @@ private void ValidateRange(object element) | 1192 | 1194 | "ValidateRangeTooSmall", | 1193 | 1195 | null, | 1194 | 1196 | Metadata.ValidateRangeSmallerThanMinRangeFailure, | 1195 | | - element.ToString(), MinRange.ToString()); | | 1197 | + element.ToString(), | | 1198 | + MinRange.ToString()); | 1196 | 1199 | } | 1197 | 1200 |
| 1198 | 1201 | if (_maxComparable.CompareTo(element) < 0) | @@ -1201,7 +1204,8 @@ private void ValidateRange(object element) | 1201 | 1204 | "ValidateRangeTooBig", | 1202 | 1205 | null, | 1203 | 1206 | Metadata.ValidateRangeGreaterThanMaxRangeFailure, | 1204 | | - element.ToString(), MaxRange.ToString()); | | 1207 | + element.ToString(), | | 1208 | + MaxRange.ToString()); | 1205 | 1209 | } | 1206 | 1210 | } | 1207 | 1211 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | 2 | 2 | // Licensed under the MIT License. | 3 | 3 |
| 4 | | - | 5 | 4 | using Dbg = System.Management.Automation.Diagnostics; | 6 | 5 | using DWORD = System.UInt32; | 7 | 6 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/System.Management.Automation/engine/parser/tokenizer.cs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -4624,6 +4624,7 @@ internal Token NextToken() | 4624 | 4624 | { | 4625 | 4625 | NormalizeCRLF(c1); | 4626 | 4626 | } | | 4627 | + | 4627 | 4628 | if (c1 == '\n' || c1 == '\r') | 4628 | 4629 | { | 4629 | 4630 | NewToken(TokenKind.LineContinuation); | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -65,9 +65,9 @@ internal WSManConfigurationOption() | 65 | 65 | } | 66 | 66 |
| 67 | 67 | /// <summary> | 68 | | - /// LoadFromDefaults. | | 68 | + /// Override LoadFromDefaults method. | 69 | 69 | /// </summary> | 70 | | - /// <param name="keepAssigned"></param> | | 70 | + /// <param name="keepAssigned">Keep old values.</param> | 71 | 71 | protected internal override void LoadFromDefaults(bool keepAssigned) | 72 | 72 | { | 73 | 73 | if (!keepAssigned || !_outputBufferingMode.HasValue) | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -86,7 +86,7 @@ internal virtual Hashtable ConstructQuotasAsHashtable() | 86 | 86 | /// If keepAssigned is true only those values are set | 87 | 87 | /// which are unassigned. | 88 | 88 | /// </summary> | 89 | | - /// <param name="keepAssigned"></param> | | 89 | + /// <param name="keepAssigned">Keep old values.</param> | 90 | 90 | protected internal virtual void LoadFromDefaults(bool keepAssigned) | 91 | 91 | { | 92 | 92 | throw new NotImplementedException(); | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 1 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | 2 | 2 | // Licensed under the MIT License. | 3 | 3 |
| 4 | | - | 5 | 4 | using Dbg = System.Management.Automation.Diagnostics; | 6 | 5 |
| 7 | 6 | namespace System.Management.Automation.Remoting | |
|