Dúvida sobre recursos de IA generativa, revisão contextual de PR e roadmap do SonarQube

Atualmente estamos avaliando a evolução do nosso ecossistema de qualidade de código, DevSecOps e ferramentas de IA para apoiar o fluxo de Merge Requests dos nossos desenvolvedores.

Sabemos da excelência do SonarQube em análise estática (SAST, Code Smells, Vulnerabilidades, Cobertura) e acompanhamos lançamentos recentes como o Sonar AI CodeFix e o AI Code Assurance.

No entanto, gostaríamos de esclarecer se o SonarQube possui nativamente, via plugins oficiais ou no roadmap, recursos voltados à atuação como um “PR Agent” interativo e contextual, especificamente nos seguintes tópicos:

  1. Interatividade conversacional em PRs/MRs:

    • Existe algum bot ou mecanismo de interação via comentários nos PRs (comandos estilo /ask, /review, /improve) para tirar dúvidas diretamente na thread do GitLab DevOps?
  2. Análise semântica contextual via LLM:

    • Além da análise estática determinística (regras de linter, AST e taint analysis), o SonarQube possui recursos que analisam a intenção do PR, lógica de negócio e riscos de regressão baseando-se no diff completo?
  3. Geração automatizada de testes unitários:

    • Existe alguma funcionalidade ou plugin que gere suítes de testes automatizados sob demanda (ex: comando /test) para classes ou funções alteradas no PR, além da medição de cobertura?
  4. Geração de resumos e documentação de PRs:

    • Há ferramentas para preenchimento automático de títulos, descrições de PRs (/describe), walkthroughs ou changelogs com base nas alterações submetidas?
  5. Escopo e evolução do Sonar AI CodeFix:

    • O AI CodeFix atua exclusivamente na correção de issues previamente flagradas pelo scanner estático, ou há planos/plugins para sugerir refatorações livres e otimizações arquiteturais amplas solicitadas pelo usuário?
  6. Roadmap e Ecossistema de Plugins:

    • Caso esses recursos não estejam no produto base, a Sonar recomenda alguma integração/plugin oficial ou possui no roadmap planos para um agente conversacional de PR?

Agradecemos desde já pela atenção e aguardamos o retorno para orientar nossas decisões de arquitetura e licenciamento.

Hey @caio_giaretton! I’ve taken the liberty to translate your questions to English and will copy them in English as I reply so that it’s easier for any reader to follow. Let’s go for it:

  1. Conversational interactivity in PRs/MRs:
    Is there any bot or interaction mechanism via comments on PRs (commands /ask, /review, /improve style) to answer questions directly in the GitLab DevOps thread

I suggest you check out Gitar, our new AI-powered PR review product, which will review your PRs on GitLab, leave comments, push AI-generated fixes, and react to commands interactively, in the way you describe. Some relevant entry points:

  1. Contextual semantic analysis via LLM:

    In addition to deterministic static analysis (linter rules, AST and taint analysis), SonarQube has features that analyze PR intent, business logic and regression risks based on full diff?

Same here: consider Gitar for this. We have some docs on Gitar’s Functional Validation capabilities.

  1. Automated generation of unit tests:

    Is there any functionality or plugin that generates automated test suites on demand (e.g. /test command) for classes or functions changed in the PR, in addition to measuring coverage?

No, we don’t generate unit tests, however, Gitar can fix failing tests.

  1. Generation of summaries and documentation of PRs:

    Are there tools for auto-populating titles, PR descriptions (/describe), walkthroughs, or changelogs based on submitted changes?

Gitar writes a summary comment in the PR page when it analyzes a PR (I hope you’re starting to see a pattern here :joy: Gitar really seems to fit most of the cases you’re asking for). However, to be honest, this is something that typically your normal coding agent (Claude, etc) can also do when pushing a PR.

  1. Scope and evolution of Sonar AI CodeFix:

    Does AI CodeFix work exclusively to correct issues previously detected by the static scanner, or are there plans/plugins to suggest free refactorings and broad architectural optimizations requested by the user?

No such plans. AI CodeFix suggest fixes for some specific issues. You could also look into our Remediation Agent, similar to AI CodeFix but more autonomous.