Skip to content

Commit c33c38b

Browse files
committed
update comments
1 parent a8df05d commit c33c38b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Engine/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private void parseSettingsHashtable(Hashtable settingsHashtable)
395395
var settings = GetDictionaryFromHashtable(settingsHashtable);
396396
foreach (var settingKey in settings.Keys)
397397
{
398-
var key = settingKey.ToLowerInvariant(); // Invariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
398+
var key = settingKey.ToLowerInvariant(); // ToLowerInvariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
399399
object val = settings[key];
400400
switch (key)
401401
{

Rules/ProvideCommentHelp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public override string ToString()
419419
public virtual string ToString(int? tabStop)
420420
{
421421
var sb = new StringBuilder();
422-
sb.Append(".").AppendLine(Name.ToUpperInvariant());
422+
sb.Append(".").AppendLine(Name.ToUpperInvariant()); // ToUpperInvariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
423423
if (!String.IsNullOrWhiteSpace(Description))
424424
{
425425
sb.Append(Snippetify(tabStop, Description));

Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function Measure-RequiresModules
167167
[System.Management.Automation.Language.CommandAst]$cmdAst = $Ast;
168168
if ($null -ne $cmdAst.GetCommandName())
169169
{
170+
# ToLowerInvariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
170171
if ($cmdAst.GetCommandName().ToLowerInvariant() -eq "import-module")
171172
{
172173
$returnValue = $true
@@ -225,8 +226,8 @@ function Measure-RequiresModules
225226
}
226227

227228

228-
# The two rules in the following if block use StaticParameterBinder class.
229-
# StaticParameterBinder class was introduced in PSv4.
229+
# The two rules in the following if block use StaticParameterBinder class.
230+
# StaticParameterBinder class was introduced in PSv4.
230231
if ($PSVersionTable.PSVersion -ge [Version]'4.0.0')
231232
{
232233
<#

0 commit comments

Comments
 (0)