Skip to content

Conversation

@xtqqczze
Copy link
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
Member

This is a large number of files changed. Would be easier to review if you can change one variable per commit.

@xtqqczze
Copy link
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
@xtqqczze xtqqczze changed the title [WIP]Correct casing for automatic variables Correct casing for automatic variables Jan 13, 2020
@xtqqczze
Copy link
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
Contributor Author

@iSazonov why not a squash merge?

@TravisEz13
Copy link
Member

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

@iSazonov
Copy link
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
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

ghost commented Mar 26, 2020

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

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