mtlog-analyzer GoLand Plugin
Real-time validation for mtlog message templates in GoLand and other JetBrains IDEs with Go support.
Features
- π Real-time template validation as you type
- π― Three severity levels: errors, warnings, and suggestions
- π¨ Intelligent highlighting:
- Template/argument errors highlight the template string and arguments
- Property naming warnings highlight only the property name
- π§ Quick fixes for common issues (PascalCase conversion, argument count)
- βοΈ Configurable analyzer path and flags
- π Performance optimized with caching and debouncing
- π₯οΈ Full support for Windows, macOS, and Linux
Requirements
Installation
-
Install from JetBrains Marketplace:
- Open GoLand
- Go to Settings β Plugins β Marketplace
- Search for "mtlog-analyzer"
- Click Install
-
Or download the .zip file from releases and install manually
Configuration
Go to Settings β Tools β mtlog-analyzer to configure:
- Analyzer Path: Path to mtlog-analyzer executable (auto-detected by default)
- Additional Flags: Extra command-line flags for the analyzer
- Severity Levels: Customize how errors, warnings, and suggestions are displayed
Usage
The plugin automatically analyzes Go files as you type, showing diagnostics inline:
- Red underline: Template/argument mismatch errors
- Yellow underline: Warnings (e.g., using @ with basic types)
- Gray underline: Suggestions (e.g., property naming conventions)
Use Alt+Enter on any diagnostic to see available quick fixes.
Suppression
You can suppress diagnostics using:
//noinspection MTLog - Suppress on the next line
// MTLOG-IGNORE - Inline suppression
Development
Building
./gradlew buildPlugin
Running
./gradlew runIde
Testing
./gradlew test
Development & Releases
This plugin is built and released through the main mtlog repository's CI/CD pipeline.
Release Process
All components (library, analyzer, and IDE extensions) are released together with the same version:
git tag v0.7.0
git push origin v0.7.0
This will:
- Release the mtlog library to Go modules
- Build mtlog-analyzer binaries for all platforms
- Publish the VS Code extension to the marketplace
- Publish the GoLand plugin to JetBrains Marketplace
- Create a GitHub release with all artifacts
License
Same as the main mtlog project.