vercel-labs / vercel-labs/konsistent

Add Option to Disallow Any File and Pattern that Were Not In Allowlist (i.e. In MustHave Array)

Open
#81 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
176
Forks
6
Avg merge
20h 26m
Merged PRs (30d)
11

Description

Feature Description

Hello,

Let's say I'm using Konsistent to define what my project directory and subdirectory and files look like, after I do that using MustHave, I want to also make Konsistent warn or error anytime there's an folder or file existed that wasn't defined in my musthave array and definition.

This way Konsistent can prevent things to exist that developer is unaware of, or AI agent create a file or folder and in somewhere where it should not exist or happen.

Otherwise without this feature or capability, Konsistent cannot be a strict or guarding tool, things could go out of rail.

Suggested Implementation

No response

Contributor guide

No contributing guide indexed for this repository

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 how Konsistent processes the MustHave array and validates project directories, then trace where warnings or errors are reported. Define the behavior for files and folders absent from the allowlist, including nested paths, and verify that unexpected entries are consistently rejected or warned about.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.