Correct casing for automatic variables by xtqqczze · Pull Request #11568 · PowerShell/PowerShell · GitHub
Skip to content

Correct casing for automatic variables#11568

Merged
iSazonov merged 35 commits intoPowerShell:masterfrom
xtqqczze:automatic-variables-case
Jan 14, 2020
Merged

Correct casing for automatic variables#11568
iSazonov merged 35 commits intoPowerShell:masterfrom
xtqqczze:automatic-variables-case

Conversation

@xtqqczze
Copy link
Copy Markdown
Contributor

PR Summary

Correct casing for special variables (a.k.a. automatic variables)

PR Context

The following code was used to generate a list of special variables:

[psobject].Assembly.GetType('System.Management.Automation.SpecialVariables').GetFields('NonPublic,Static') |
    Where-Object FieldType -eq ([string]) |
    ForEach-Object GetValue $null |
    Where-Object {$_ -imatch '[a-z].+'}

PR Checklist

@SteveL-MSFT
Copy link
Copy Markdown
Member

@xtqqczze
Copy link
Copy Markdown
Contributor Author

@SteveL-MSFT OK, I will rewrite

@xtqqczze xtqqczze changed the title Correct casing for automatic variables [WIP]Correct casing for automatic variables Jan 13, 2020
@xtqqczze xtqqczze force-pushed the automatic-variables-case branch from 698aed5 to 090ad9c Compare January 13, 2020 19:38
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
Comment thread test/powershell/Host/ConsoleHost.Tests.ps1
@xtqqczze xtqqczze changed the title [WIP]Correct casing for automatic variables Correct casing for automatic variables Jan 13, 2020
@xtqqczze
Copy link
Copy Markdown
Contributor Author

CodeFactor issues are preexisting

@iSazonov iSazonov added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Jan 14, 2020
@iSazonov iSazonov added this to the 7.1.0-preview.1 milestone Jan 14, 2020
@iSazonov iSazonov merged commit aefb82a into PowerShell:master Jan 14, 2020
@xtqqczze
Copy link
Copy Markdown
Contributor Author

@iSazonov why not a squash merge?

@TravisEz13
Copy link
Copy Markdown
Member

@iSazonov Yes please use squash commits. I've remove permissions for merge commits.

@iSazonov
Copy link
Copy Markdown
Collaborator

GitHub did return an error after I press Squash and Merge button and show something like "Try again", then ok after refresh. :-(
Merge button was disabled some time ago but then was enabled - I don't know why.

@xtqqczze
Copy link
Copy Markdown
Contributor Author

Opened issue PowerShell/PSScriptAnalyzer#1401 to detect regressions.

@xtqqczze xtqqczze deleted the automatic-variables-case branch January 22, 2020 16:47
@ghost
Copy link
Copy Markdown

ghost commented Mar 26, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants