Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>apex-guardianNew to Visual Studio Code? Get it now.
apex-guardian

apex-guardian

apex-guardian

|
5 installs
| (1) | Free
Apex architecture and null-safety validator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Apex Guardian 🛡️

Apex Guardian is a VS Code extension for Salesforce developers that helps enforce clean Apex architecture and null-safety best practices during development.


✨ Features

🧱 Apex Architecture Validation

  • Detects violations in Apex layer separation
  • Ensures proper usage of:
    • Controller
    • Service
    • Selector
    • Utility classes
  • Prevents direct SOQL/DML in controllers

🚫 Null-Safety Checks

  • Detects possible null dereference risks
  • Flags unsafe access to:
    • Lists
    • Maps
    • SObjects
  • Encourages defensive coding patterns

📦 Supported Files

  • .cls
  • .trigger

🚀 How to Use

  1. Open a Salesforce project in VS Code
  2. Open any Apex class
  3. Apex Guardian automatically analyzes the file
  4. Issues are shown as Problems / Diagnostics

🛠 Configuration

Currently works with default rules.
Custom rule configuration will be added in future versions.


📌 Roadmap

  • Configurable rule severity
  • Quick fixes
  • CI/CD integration support

🤝 Contributing

Contributions are welcome!
Please open an issue or submit a pull request.


📄 License

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft