A Roslyn-based code analyzer for Rust game plugins that helps maintain code quality by detecting common issues.
-
Empty Method Detection (RUST001)
- Detects empty methods that might indicate incomplete implementation
- Helps identify forgotten code or unnecessary methods
- Documentation
-
Unused Method Detection (RUST003)
- Finds methods that are never used in the codebase
- Helps maintain clean code by identifying dead code
- Documentation
-
Install via NuGet Package Manager:
Install-Package rust-analyzer
-
Or via .NET CLI:
dotnet add package rust-analyzer
- .NET Standard 2.0 or higher
- Visual Studio 2019 or higher
- C# 8.0 or higher
The analyzer will automatically start working once added to your project. It provides:
- Real-time analysis in Visual Studio
- Warning messages with detailed explanations
- Quick fixes for common issues
- Documentation links for each rule
| Rule ID | Category | Severity | Description |
|---|---|---|---|
| RUST001 | Design | Warning | Empty method detection |
| RUST003 | Design | Warning | Unused method detection |
No additional configuration is required. The analyzer works out of the box with default settings.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built using the .NET Compiler Platform (Roslyn)
- Inspired by the Rust game modding community