Skip to content

warn on missing powershell safety configurations #142

@mcandre

Description

@mcandre

The first two non-comment, non-blank lines in a PowerShell script should include:

  • Set-PSDebug -Strict (equivalent of POSIX sh set -u)
  • $ErrorActionPreference = "Stop" (equivalent of POSIX sh set -e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions