-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(maint) PowerShell Formatting #2799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! A few comments here and there. There's more we could do with these scripts going forward, but this is a great first step.
Thanks for the PR! 💖 😊
1f2d60c
to
2e90218
Compare
2e90218
to
7d65f30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@TheCakeIsNaOH thanks for getting all of these fixed up! |
There were some changed code that was missed when chocolatey#2799 was rebased, and was not reformatted.
There were some changed code that was missed when chocolatey#2799 was rebased, and was not reformatted.
Description Of Changes
PowerShell formatting changes according to PSSA settings in chocolatey/Chocolatey.Cake.Recipe#73.
Motivation and Context
Brings the PowerShell scripts to a consistent formatting baseline in this repository to prepare for #2703.
The
chocolateyInstall.ps1
in thezip.template
andmsi.template
packages included for the pester tests will give parsing errors, these will need to be excluded. The parsing errors are due to the tokens that are to be replaced when the template is used.The
tools
directory also need to be excluded as it contains PowerShell scripts from various Cake modules/tools/addins/etc that should not be checked.Testing
Ran
Invoke-ScriptAnalyzer -Path . -Recurse -Settings "\path\to\Chocolatey.Cake.Recipe\Chocolatey.Cake.Recipe\Content\formatting-settings.psd1"
to ensure that the PowerShell formatting is acceptable according to the agreed on settings.Ran nunit and pester tests to ensure that nothing was broken.
Change Types Made
Related Issue
Formatting changes for #2703
Part of #13
Change Checklist