Ruby Require Checker VS Code Extension
Overview
A VS Code extension that validates Ruby require statements in real-time, helping developers identify missing or incorrect imports.
Features
- Real-time validation of Ruby require statements
- Quick-fix suggestions for missing requires
- Status bar indicator for require validation status
- Support for both relative and absolute requires
- Integration with Ruby project structure
Installation
code --install-extension ruby-require-checker-0.0.1.vsix
Configuration
{
"rubyRequireChecker.enabled": true,
"rubyRequireChecker.scanOnSave": true,
"rubyRequireChecker.ignorePaths": ["vendor/**", "node_modules/**"]
}
Usage
Basic Validation
The extension automatically checks require statements when:
- Opening a Ruby file
- Saving changes
- Manual trigger via command palette
Commands
Ruby: Check Requires
- Manually trigger require validation
Ruby: Fix Missing Requires
- Show quick-fix suggestions
Status Bar
- ✅ All requires valid
- ⚠️ Missing or invalid requires
- 🔄 Checking requires
Development
Prerequisites
Setup
git clone https://github.com/yourusername/ruby-require-checker
cd ruby-require-checker
npm install
Build
npm run compile
npm run test
vsce package
Project Structure
.
├── src/
│ ├── extension.ts # Extension entry point
│ ├── dependencyChecker.ts # Core validation logic
│ └── test/ # Test files
├── package.json # Extension manifest
└── README.md # Documentation
Contributing
- Fork repository
- Create feature branch
- Submit pull request
License
MIT
Support
File issues on GitHub repository
Release Notes
1.0.0
- Initial release
- Basic require validation
- Quick-fix suggestions
0.1.0
- Preview release
- Core validation functionality