Ally Guard is a powerful Visual Studio Code extension designed to help developers and auditors scan their codebases for specific patterns using Regular Expressions.
Whether you are looking for security vulnerabilities (hardcoded secrets), ensuring Accessibility (ADA) compliance, or just tracking down TODO comments, this tool provides an interactive and persistent way to manage your scans.
Features
🔍 Workspace & File System Scanning: Scan your currently open workspace or browse to select any folder on your computer.
🛡️ Predefined Pattern Sets: Comes pre-loaded with useful patterns:
Security: Detects hardcoded passwords and potential API keys.
Accessibility (ADA): Checks for missing aria-labels, alt text on images, and missing tabindex on interactive elements.
✏️ Custom Pattern Management:
Create your own Regex patterns via the UI.
Edit and Delete custom patterns.
Patterns are saved globally and persist across VS Code restarts.
📊 Interactive Results:
View matches in a clean table format.
Click-to-Navigate: Clicking a result instantly opens the file and scrolls to the exact line.
💾 CSV Export: Export your scan findings to a .csv file for reporting or external analysis.
Installation
To install this extension from the .vsix file provided:
Open Visual Studio Code.
Go to the Extensions View (Click the square icon on the left sidebar or press Ctrl+Shift+X).
Click the "..." (Three Dots) menu at the top-right of the Extensions pane.
Select Install from VSIX...
Browse and select the AllyGuard-1.0.0.vsix file.
Click Install.
Reload VS Code if prompted.
How to Use
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Type and select Ally Guard: Open Scanner.
Select Patterns: Check the boxes for the patterns you want to search for.
Select Scope (Optional):
Default: Scans the entire open workspace (ignoring node_modules, .git, etc.).
Click Browse... to select a specific folder to scan.
Click Start Scan.
Review results in the table below or click Export CSV to save them.
Default Patterns Included
The extension comes with several built-in patterns, including: