You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PSSA for Turkish culture and tests when culture is not en-US (#1099)
* Fix Parsing of settings that occurs when using turkish culture
* use german culture before running tests to exhibit failures
* set ui culture as well
* fix communityanalyzer for turkish culture
* fix ProvideCommentHelp for turkish culture (i problem again)
* update comments
* fix for import-localizedDatabug in pscore (opened issue 8219 in ps core repo)
* change to UI culture
* use invariant culture comparison instead of tolowerinvariant and revert change where it is not needed
* finish with comments
* Use OrdinalIgnoreCase
* revert accidental change from 2 commits before
* trigger ci
* Apply suggestions from code review
Co-Authored-By: bergmeister <[email protected]>
* Use else-less approach to address PR comment
varkey=settingKey.ToLowerInvariant();// ToLowerInvariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
Copy file name to clipboardExpand all lines: Rules/ProvideCommentHelp.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -419,7 +419,7 @@ public override string ToString()
419
419
publicvirtualstringToString(int?tabStop)
420
420
{
421
421
varsb=newStringBuilder();
422
-
sb.Append(".").AppendLine(Name.ToUpper());
422
+
sb.Append(".").AppendLine(Name.ToUpperInvariant());// ToUpperInvariant is important to also work with turkish culture, see https://github.com/PowerShell/PSScriptAnalyzer/issues/1095
0 commit comments