microsoft / microsoft/ApplicationInspector
Requiring match at a specific index in Rule based MustMatch tests
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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