Skip to content

Improve configuration #1479

@rjmholt

Description

@rjmholt
Contributor

Configuration of PSSA2 should be easier.

In particular:

  • Misconfigurations should present a useful error to users about expectation vs what was given
  • Configuration should take a list of rule configurations and implicitly turn them into a dictionary, rather than require null dictionary entries
  • Perhaps add more here

Activity

added this to the 2.0 milestone on May 6, 2020
bergmeister

bergmeister commented on May 6, 2020

@bergmeister
Collaborator

Have a think about how config should work from the editors POV as well. At the moment all individual configuration are exposed as individual settings to individually override the default settings. If we simplified it to a few JSON objects, we need to make sure that this is not the actual configuration but only the configuration overrides. This way the concept of the PSSA settings file would only be useful when using the cmdlets directly but editor users would only configure vs code settings.
How would user and workspace settings combine if it was a big object instead of just 1 value? VS-Code has the concept that workspace settings override user settings but in this case we don't want that on the whole object but only the individual properties

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rjmholt@bergmeister

        Issue actions

          Improve configuration · Issue #1479 · PowerShell/PSScriptAnalyzer