microsoft / microsoft/ApplicationInspector

Requiring match at a specific index in Rule based MustMatch tests

Open
#473 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feedback wanted
Dominant language
C#
Stars
4.4k
Forks
366
Avg merge
6d 7h
Merged PRs (30d)
3

Description

With #472 we add the ability to include tests directly in Rule object JSON. These tests consist of an array of strings which must/must not match the rule.

A user may want to further have validation that a match occurs at a specified index or occurs a certain number of times.

I'm opening this issue to solicit user feedback if there is value in implementing an additional field must-match-with-indices or the like that would provide this.

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

The issue describes a possible JSON rule field for matching at specific indices or a specified number of times, but it does not name implementation files, tests, or an entry point. Start by reviewing the rule-based MustMatch tests introduced by #472 and determine whether user feedback supports a defined design. Done would require an agreed specification, implementation location, and tests for the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.