CodeRail VS Code Extension
Real-time AI code validation and security enforcement for Visual Studio Code and Cursor.
Features
- ✅ Real-time Validation - Instant feedback as you code
- 🛡️ 500+ Rules - Security, quality, accessibility, performance, design, architecture
- 🤖 Chat Participant - AI assistant with built-in enforcement
- 🔧 Auto-fix - Automatically fix common violations
- 📊 Diagnostics - Inline error highlighting and quick fixes
- 🎯 Custom Rules - Add your own validation rules
- 💼 License Management - Free, Pro, and Team tiers
Installation
- Install from VS Code Marketplace or Cursor Extensions
- Run command:
CodeRail: Activate License
- Enter your license key
- Start coding with real-time validation!
Usage
Commands
CodeRail: Activate License - Activate your license
CodeRail: Validate Current File - Run validation manually
CodeRail: Show Active Rules - View all active rules
CodeRail: Disable Rule - Disable a specific rule
CodeRail: Enable Rule - Re-enable a disabled rule
CodeRail: Add Custom Rule - Create a custom validation rule
Chat Participant
Use @coderail in chat:
@coderail /validate
@coderail /fix
@coderail /explain SQL Injection Prevention
Settings
coderail.enabled - Enable/disable validation
coderail.validationMode - When to validate (realtime, onSave, manual)
coderail.severity - Default severity level
coderail.categories - Enabled rule categories
coderail.excludePatterns - File patterns to exclude
Rule Categories
🔒 Security (125 rules)
- SQL Injection Prevention
- XSS Protection
- Command Injection
- Path Traversal
- Secrets Management
- Cryptography
- Authentication
- CORS Configuration
- And more...
⚡ Quality (100 rules)
- SOLID Principles
- Code Cleanliness
- Error Handling
- Function Size
- Code Duplication
- Naming Conventions
- And more...
♿ Accessibility (81 rules)
- WCAG 2.1 AA Compliance
- Alt Text
- Form Labels
- Keyboard Navigation
- ARIA Attributes
- Color Contrast
- And more...
- DOM Optimization
- Bundle Size
- Memory Leaks
- Blocking Operations
- N+1 Queries
- And more...
🎨 Design (140 rules)
- Design System Compliance
- Spacing
- Typography
- Colors
- Shadows
- Responsive Design
- And more...
🏗️ Architecture (65 rules)
- Single Responsibility
- Dependency Injection
- Layer Separation
- Interface Segregation
- Immutability
- And more...
License Tiers
Free
- 100 validations/month
- 50 core rules
- Community support
Pro ($12/month)
- Unlimited validations
- 500+ rules
- 5 custom rules
- Email support
Team ($25/month)
- Everything in Pro
- Team dashboard
- Unlimited custom rules
- Priority support
Development
Build from source
cd coderail-extension
npm install
npm run compile
Package extension
npm run package
Install locally
code --install-extension coderail-1.0.0.vsix
Support
License
Proprietary - See LICENSE file for details
| |