microsoft / microsoft/PSRule

AnyOf/ AllOf script block depreciation

Open
#2,534 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking-change deprecation
Dominant language
C#
Stars
474
Forks
65
Avg merge
22h 25m
Merged PRs (30d)
26

Description

Use of the AnyOf script block keywords doesn't fail fast. All instructions are executed which can lead to unexpected executions when they do not OR.

Also, script block keywords are duplicated with $Assert methods, which provide more flexibility and closer alignment with YAML/ JSON syntax.

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.

Research direction

Start by locating the AnyOf and AllOf script block keyword implementations and the corresponding $Assert methods. Compare their execution behavior and syntax, then determine the intended deprecation scope; the issue does not name specific files, tests, or a final replacement plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.