Skip to content

[suppressions] Add property "if" to scope suppressions #35153

@mikeharder

Description

@mikeharder

Similar to:

https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idif

Examples:

- tool: TypeSpecValidation
  rules: [FolderStructure]
  if: context === "all"

- tool: TypeSpecValidation
  rules: [FolderStructure]
  if: date > 2025-01-01

Perhaps the value of "if" could be evaluated using some language, maybe JS in a sandbox? Or an even simpler language provided by a library?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions