Skip to content

feat: code suggestions rendering (single-line) #42

Description

@brucearctor

Context

The model already produces Finding.Suggestion (raw replacement code). Currently formatInlineComment in output.go pre-renders it as suggestion markdown, but the syntax is platform-specific:

  • GitLab: suggestion:-0+0\ncode\n
  • GitHub: suggestion\ncode\n

Proposed Changes

  1. Split suggestion rendering from body formatting in output.go
  2. Move ReviewComment.Suggestion field to carry raw code (not markdown)
  3. Each platform client wraps in correct syntax
  4. Terminal output keeps current format

Prerequisite

Ref

E9 design session in conversation 8ecd8c13

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions