MohamedAshrafMohamedAshraf

Case study

Code Guardian

Category
VS Code · Developer Tool & Linter
Year
Role
Collaborator & Developer
Status
MAINTAINED
Abstract architectural composition of protective boundary vectors and code rules
Purpose-made artwork for Code Guardian — not a product screenshot.

01

Overview

A developer tool and VS Code extension that enforces pre-push quality gates by scanning files for forbidden patterns and security risks.

02

The problem

Accidental commits of sensitive keys, leftover debug statements, and syntax regressions frequently bypass local checks and hit staging repositories.

03

The idea

Automate code verification directly inside the editor and git workflow, providing real-time diagnostics and blocking bad pushes via team-wide rules.

04

Engineering

Built on TypeScript and VS Code Extension APIs with fast buffer scanning, diagnostic collection reporting, and customizable .codeguardian.json rules.

05

Challenges

Balancing strict pattern scanning with near-zero latency during large multi-file commits across heterogeneous programming languages.

06

Outcome

Published on Open VSX with over 2,600+ active downloads and a 5.0-star rating across engineering teams.

07

Technology

TypeScript · VS Code API · Git Hooks · Node.js

Visit package →

09 — Next projectgradient_icon