microsoft / microsoft/DevSkim

(Parent) directory matcher

Open
#667 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
1k
Forks
131
Avg merge
1m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

In projects that have a certain folder structure I would like certain rules to apply not only on a specific file type but also to the consider the folder the file is in.

For example MVC structure. A rule that can be applied only on files with a certain file extension inside the views folder. Preferably within definable X depth up, to allow for some recursion (like globs). Or through defining multiple allowed paths like:

paths : [
  "*/views/",
  "*/views/*/",
  "*/views/**"
]

Describe the solution you'd like
A (parent) directory matcher.

Describe alternatives you've considered
None.

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 with the requested directory-matching behavior in issue #667, including the MVC and glob-style path examples. Identify the existing rule-matching entry points and tests before deciding how parent directories and configurable depth should work. Done means the behavior is specified, implemented, and covered for the example path patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Feature
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.