Skip to content

Add PSScriptAnalyzer to build pipeline #152

@HeyItsGilbert

Description

@HeyItsGilbert

What

  • Add PSScriptAnalyzer as an Analyze task in psake.ps1
  • Initial ruleset: PSAvoidUsingCmdletAliases, PSUseDeclaredVarsMoreThanAssignments, PSUseShouldProcessForStateChangingFunctions
  • Treat violations as build failures in CI

Why

No static analysis currently exists. Establishes a code quality baseline before merging community PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: build-systemCI, psake, GitHub Actions, publish pipelinearea: testsPester tests and test infrastructureeffort: smallUnder 2 hourspriority: highBlocking v0.4.0skill: intermediateRequires familiarity with PSDepend internals

    Type

    No type

    Projects

    Status

    Up Next

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions