apexgov — Apex Governor Limit Checker & Language Server
Cross-platform offline static analysis and language server for Salesforce Apex. Detects Governor limit violations in real-time as you code, with prebuilt binaries for macOS, Linux, and Windows.
Hover — Symbol information, ApexDoc/Javadoc-style tags, and optional Salesforce Apex Reference links
Signature Help — Method overloads and argument position while typing calls
Rename — Rename symbols with workspace-aware references
Syntax Highlighting — Full TextMate grammar for Apex and embedded SOQL
Document Symbols — Outline view for classes and methods
Formatting — Code formatting
Folding — Code folding support
How It Works
The extension automatically downloads the platform-specific apexgov binary from GitHub Releases on first activation. No additional dependencies (Zig, JDK, Java, Salesforce CLI, etc.) are required.
Detected Rules
ID
Detection Target
AG001
Nested loops
AG002
SOQL inside loops
AG003
DML inside loops
AG004
JSON serialize/deserialize inside loops
AG005
clone/deepClone inside loops
AG006
Collection allocation inside loops
AG007
String concatenation inside loops
AG008
SOSL inside loops
AG009
Heuristic CPU estimate
AG010
HTTP callout inside loops
AG011
Messaging.sendEmail inside loops
Settings
Setting
Description
Default
apexgov.serverPath
Path to apexgov binary. If empty, downloaded automatically.