Updates OCGV and SHOT to Terminal.Gui v2 #267
Draft
Annotations
5 warnings
|
Build and test:
src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs#L289
The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Microsoft.PowerShell.ConsoleGuiTools.TypeGetter.CastObjectToDataTableRow(System.Management.Automation.PSObject, System.Collections.Generic.List<Microsoft.PowerShell.OutGridView.Models.DataTableColumn>, int)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
Build and test:
src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs#L289
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Microsoft.PowerShell.ConsoleGuiTools.TypeGetter.CastObjectToDataTableRow(System.Management.Automation.PSObject, System.Collections.Generic.List<Microsoft.PowerShell.OutGridView.Models.DataTableColumn>, int)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
Build and test:
src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs#L184
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Microsoft.PowerShell.ConsoleGuiTools.TypeGetter.GetDataColumnsForObject(System.Collections.Generic.List<System.Management.Automation.PSObject>, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
Build and test:
src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs#L289
Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1866)
|
|
Build and test:
src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs#L324
The variable 'ex' is declared but never used
|
Loading