bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Auto-fix/refactoring idea: use safe deference and coalesce instead of contains and ternary operator

Open StephenWeatherford opened this issue 2 years ago • 2 comments

e.g. from @brwilkinson

I have a long list of global variable overrides in every Module ... so much easier to read...

image

StephenWeatherford avatar Apr 21 '23 17:04 StephenWeatherford

Other comments:

Great idea! I think these types of codefix suggestions are super important for teaching people about new language features.

I make soft growling noise in the back on my throat every time there is a static analysis warning without a auto-fix.....

StephenWeatherford avatar Apr 21 '23 19:04 StephenWeatherford

See https://github.com/Azure/bicep/discussions/10613 for gotchas

StephenWeatherford avatar May 20 '23 00:05 StephenWeatherford