Skip to content

feat: Add cleanedDescription to strip marked blocks from event descriptions - #183

Open
sirambd wants to merge 5 commits into
mainfrom
cleaned-description
Open

sirambd wants to merge 5 commits into
mainfrom
cleaned-description

Conversation

@sirambd

@sirambd sirambd commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Adds the Event.cleanedDescription property, which returns the event description with Infomaniak-marked blocks removed.
Includes tests for single and multiple blocks, empty blocks, and blocks containing line breaks.

Copilot AI balanced review requested due to automatic review settings September 24, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The implementation also trims user-authored whitespace outside marked blocks.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds cleanedDescription to expose event descriptions without Infomaniak-marked blocks.

Changes:

  • Adds marked-block removal logic.
  • Exposes cleaned descriptions on Event.
  • Adds tests for block-removal scenarios.
File Description
EventDescriptionExtensions.kt Implements marked-block removal.
Event.kt Adds the cleanedDescription property.
EventDescriptionExtensionsTest.kt Tests block-removal behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants