A lightweight VS Code extension that scans your project for .gitlab/CODEOWNERS files within app/ folders and warns you whenever you open a file owned or frozen according to CODEOWNERS. This helps prevent accidental edits in restricted or legacy areas of your codebase.
✨ Features
Automatically detects CODEOWNERS files inside .gitlab folders within app/ directories.
Recursively searches up to 5 levels above and below the workspace root to find relevant CODEOWNERS.
Parses and monitors paths owned by @epg-restricted/legacy-approvers.
Warns when you open any file or folder tracked by CODEOWNERS.
Designed to work smoothly with monorepos and nested workspace structures.
🚀 How It Works
On activation, searches for the closest .gitlab/CODEOWNERS file inside an app/ directory located within 5 levels up or down from the workspace root.
Parses the CODEOWNERS file and filters entries owned by @epg-restricted/legacy-approvers.
Builds an internal list of absolute paths from these entries.
Listens for file open events and shows a warning if the opened file matches any monitored paths.