Skip to content

Conversation

obaidgini
Copy link
Contributor

@obaidgini obaidgini commented Sep 29, 2025

Description

This PR fixes the issue related to sonar cloud, and the cognitive complexity of one method is reduced.

Ticket# PP-1769

Notes for the reviewer

  • Logic of transforming the line items is now moved to a sub method which is private, and the cognitive complexity is reduced for the main method.
  • If you want to see the dashboard of sonar cloud, please find it in the ticket mentioned above.

Thank you.

…, because cognitive complexity was very high

PP-1769
@obaidgini obaidgini self-assigned this Sep 29, 2025
@obaidgini obaidgini added the Sonar cloud fixes Differentiate the maintenance PR's from user stories. label Sep 29, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses SonarCloud issues by reducing cognitive complexity in the DigitalInvoice class through method extraction and refactoring.

  • Extracted line item transformation logic into a separate private method to reduce cognitive complexity
  • Improved code organization by separating concerns within the compound extractions processing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

Copy link
Contributor

@abolfazlimahdi abolfazlimahdi left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sonar cloud fixes Differentiate the maintenance PR's from user stories.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants