Lightning-fast Rust linter for VS Code with live LSP integration. This extension provides real-time linting as you type, using the cargo-fl analyzer engine.
Features
Live linting - Real-time diagnostics as you type
Ultra-fast analysis - < 1 second on large codebases
No compilation required - Pure AST analysis using syn
Language Server Protocol - Full LSP integration for seamless VS Code experience
Automatic fallback - Works even without cargo-fl binary installed
Built-in rules - Includes naming conventions, unsafe code detection, TODO tracking, and more
How It Works
The extension includes a Language Server that:
Primary Mode: Uses the compiled cargo-fl binary from your project's target/ directory
Fallback Mode: Built-in Rust analysis rules when binary is not available
Live Updates: Analyzes code as you type for immediate feedback
Installation & Setup
Install this extension in VS Code
Optional: Build the cargo-fl binary for enhanced analysis:
cd /path/to/cargo-fast-lint
cargo build --release
Open any Rust file - the extension activates automatically
Extension Settings
cargoFl.maxNumberOfProblems: Maximum number of problems to report (default: 1000)
cargoFl.enableLinting: Enable live linting (default: true)
cargoFl.trace.server: Debug server communication (default: "off")
Commands
Cargo FL: Restart Language Server - Restart the LSP server
Built-in Rules
Naming Conventions: Ensures proper snake_case for functions, PascalCase for structs
Line Length: Warns about lines exceeding 100 characters
Unsafe Code Detection: Highlights unsafe blocks
TODO Tracking: Finds TODO/FIXME comments
Missing Documentation: Suggests documentation for public items