DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Some static-analysis support

Open SteveL-MSFT opened this issue 4 months ago • 1 comments

Summary of the new feature / enhancement

Instead of hitting a run-time error, it would be useful to have some static analysis be performed. I do wonder if it should be part of whatIf or separate since whatIf will already handle some of it:

  • schema validation of properties
  • dependsOn circular loops (although this is caught early on during execution)
  • [reference()] w/o explicit dependsOn
  • [resourceId()] that doesn't exist (think typo)
  • invalid functions or function arguments

Proposed technical implementation details (optional)

No response

SteveL-MSFT avatar Apr 12 '24 20:04 SteveL-MSFT