DSC
DSC copied to clipboard
static linting for configuration
Summary of the new feature / enhancement
Could be dsc lint including the rule:
- If
--target-pathis used, ensuretargetPath()is used somewhere in an expression within the config
Alternatively, maybe a Bicep extension could have linting.
Proposed technical implementation details (optional)
No response
Seems like Bicep has built-in linting rules, so maybe we could extend those to support DSC specific cases like above
cc @andyleejordan
If we do support a comman, should it be developed as an extension, or surfaced as part of the core dsc executable?
I do think that even if we can get linting functional through bicep we might want to have a separate command option, as a linting tool for configurations and manifests would be valuable.
I suspect there will be a strong yaml/json config community - as much as I might prefer Bicep, I see many folks that do prefer to work in yaml. I'm open to community feedback but regardless of Bicep I think we should have good linting.