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

static linting for configuration #591

Open
SteveL-MSFT opened this issue Oct 30, 2024 · 2 comments
Open

static linting for configuration #591

SteveL-MSFT opened this issue Oct 30, 2024 · 2 comments
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Milestone

Comments

@SteveL-MSFT
Copy link
Member

Summary of the new feature / enhancement

Could be dsc lint including the rule:

  • If --target-path is used, ensure targetPath() is used somewhere in an expression within the config

Alternatively, maybe a Bicep extension could have linting.

Proposed technical implementation details (optional)

No response

@SteveL-MSFT
Copy link
Member Author

SteveL-MSFT commented Mar 26, 2025

Seems like Bicep has built-in linting rules, so maybe we could extend those to support DSC specific cases like above

cc @andyleejordan

@michaeltlombardi
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

No branches or pull requests

2 participants