Code Guardian Static Code Analyzer
Real-time static code analysis for Apex and Lightning Web Components. Automatically detects security vulnerabilities, governor limit hazards, and architectural anti-patterns.
⚡ 1. Overview & Architecture
Real-time static code analysis for Apex and Lightning Web Components. Automatically detects security vulnerabilities, governor limit hazards, and architectural anti-patterns.
🧭 2. Step-by-Step Workflow
Follow these steps to get maximum velocity with Code Guardian:
Select Component
Choose an Apex class or trigger to scan, or paste code directly into the editor.
Run Analysis
Click Run Scan to perform automated static rule evaluations.
Remediate Findings
Click findings in the left panel to jump to the code line and review remediation advice.
🛠️ 3. Key Capabilities & Superpowers
Enterprise Security Rules
Detects SOQL injection, Cross-Site Scripting (XSS), missing CRUD/FLS checks, and hardcoded credentials.
Governor Limit Rules
Detects SOQL queries inside loops, DML statements in loops, and excessive heap operations.
Interactive Gutter Markers
Issues are flagged directly in Monaco Editor gutters with High, Medium, and Low severity badges.
Click-to-Jump Navigation
Click any rule violation in the issue panel to jump directly to the offending line of code.
💡 4. Pro Tips & Keyboard Shortcuts
- Filter findings by severity (High, Medium, Low) to prioritize critical security flaws first.
- Hover over any marked line in Monaco to view the violation explanation and recommended code pattern.
Explore More SF Lens Pro Guides
Discover how other integrated studio tools can accelerate your Salesforce development and administrative workflows.