PowerShell / PowerShell/PSScriptAnalyzer

Declare requires v5 if using classes

Open
#621 0 comments 0 reactions 1 assignee View on GitHub

@kapilmb is already working on this.

Since Sep 23, 2016.

Issue - New Rule
Dominant language
C#
Stars
2.2k
Forks
414
Avg merge
13h 1m
Merged PRs (30d)
2

Description

If a script uses PowerShell class construct then the script must declare #Requires -Version 5.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.