Skip to content

Allow VSCode configuration of PSScriptAnalyzer rules #1443

Open
@rjmholt

Description

@rjmholt

To follow on from the comments starting at #1429 (comment)...

PSSA rules should be enable-able and disable-able in VSCode configuration. The current proposal is:

  • Disabled rules turn off default rules, but not a local PSSA settings file
  • Enabled rules add to the default rules

Current proposed format is:

{
  "powershell.scriptAnalysis.rules": {
    "disable": [
      "PSAvoidTrailingWhitespace"
    ],
    "enable": [
      "RuleThatILikeButMyColleaguesDont",
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions