-
Notifications
You must be signed in to change notification settings - Fork 385
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
fix: PowerShell formatting - 4 spaces tab alignment #2471
Conversation
Important The "Needs: Triage 🔍" label must be removed once the triage process is complete! Tip For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation. |
Hey @eriqua, just one comment/suggestion. Looks good |
I don't know why but this requires finops pattern to recompile the main.json to not fail its static validation. Will move to draft until further investigation |
Pull request was converted to draft
@AlexanderSehr got it, waiting for #2498 to be merged as that is regenerating the main.json for all modules already. I believe this is due to the new Bicep version, e.g. if you look at this diff you'll see a different way |
I wonder if we can also manage that via a VSCode setting - or if it's an issue of the utility and must be tackled there... |
Co-authored-by: Alexander Sehr <[email protected]>
Hi @eriqua , I notice this every time pipeline runs for my pattern modules(finops and sub-vending) which run PowerShell deployment scripts, usually on compile spaces in the script are translated to |
Hi @sebassem, not sure, I just noticed the static validation failing for both finops and sub-vending starting from Bicep version 0.28.1, independently of the latest vscode settings update. @AlexanderSehr anything from your side on this? |
Hey @eriqua, sub-vending looks green to me (now) 😄 |
Description
Disable
editor.detectIndentation
vscode setting for PowerShell files to allow 4 spaces tab to be effectiveReformat all .ps1 files
Pipeline Reference
Type of Change
version.json
:version.json
.version.json
.Checklist
Set-AVMModule
locally to generate the supporting module files.