static linting for configuration · Issue #591 · PowerShell/DSC · GitHub
Skip to content

static linting for configuration #591

Open

Description

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

Activity

  1. SteveL-MSFT commented on Mar 26, 2025

    @SteveL-MSFT
    MemberAuthor

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

    cc Andy Jordan (@andyleejordan)

  2. michaeltlombardi commented on Mar 27, 2025

    @michaeltlombardi
    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.

  3. theJasonHelmick commented on Jul 3, 2025

    @theJasonHelmick
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions