Skip to content

Add MCP Advanced Analyzer

This merge request adds more flexibility and control to the automated code analysis pipeline. The main changes include:

Pipeline Control: The existing code analysis jobs are now set to "manual" mode, meaning they won't run automatically but can be triggered when needed. This prevents the pipeline from slowing down during regular builds.

New Analysis Option: A new "advanced" analysis job has been added alongside the existing "simple" one. The advanced version includes more comprehensive checking with additional options like aggressive fixing strategies, lower severity thresholds, and multiple output formats (JSON, JUnit, and Markdown reports).

Enhanced Code Analyzer: A completely new advanced code analysis tool (mcp_analyzer_advanced.py) has been created that can:

  • Build and compile code to catch errors
  • Read and analyze source files using AI models
  • Generate automatic code fixes
  • Validate those fixes by testing if they compile
  • Provide detailed error reporting and metrics

Better Error Handling: The new analyzer includes improved error detection for build issues, with structured parsing of compiler errors and warnings, including file locations and line numbers.

Dependency Updates: The build process now depends on both the simple and advanced analysis jobs instead of the local analysis that was removed.

Overall, this gives developers more powerful tools for automated code review and fixing, while keeping the regular pipeline fast by making these intensive analysis steps optional.

Edited by Michael Friedrich

Merge request reports

Loading