Skip to content
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

Improve decompiler naming of resources: remove trailing "Name" from resources #8500

Merged
merged 9 commits into from
Sep 29, 2022

Conversation

StephenWeatherford
Copy link
Contributor

@StephenWeatherford StephenWeatherford commented Sep 27, 2022

(Partial?) fix for #1591

This fix is to remove trailing "Name" from resource symbolic names for the common pattern which ends up decompiled as:
var vmName_var = '...'
resource vmName {
name: vmName_var
}
now goes to:
var vmName = '...'
resource vm {
name: vmName
}

I ran decompile on all templates in https://github.com/Azure/azure-quickstart-templates with these results:
Instances of variable names ending with "_var" went from 2623 to 489
Instances of resource names ending with "_resource" went from 1567 to 172

Microsoft Reviewers: Open in CodeFlow

@StephenWeatherford StephenWeatherford changed the title Improve decompiler naming of resources Improve decompiler naming of resources: remove trailing "Name" from resources Sep 28, 2022
@StephenWeatherford StephenWeatherford merged commit ad66b70 into main Sep 29, 2022
@StephenWeatherford StephenWeatherford deleted the sw/naming branch September 29, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants