uiowaSEP2024 / 002_ImagePro

Image processing backend
1 stars 0 forks source link

Sonar Duplicate Code #46

Closed Ivan-E-Johnson closed 9 months ago

Ivan-E-Johnson commented 9 months ago

Here's how to format your issue using Markdown for better readability and organization on platforms like GitHub or GitLab:


Title

Eliminate Duplicate Code Detected by SonarCloud

Describe the bug

SonarCloud analysis identified duplicate code across the codebase, affecting maintainability.

Steps to Identify

Duplicate code was detected in SonarCloud's analysis, not through user interaction.

Expected behavior

Code should adhere to DRY principles with minimal duplicate blocks.

Actual Behavior

Several components have duplicate code, increasing technical debt.

Environment

Additional context

Detected in:

Possible Fix

  1. Review and abstract duplicate code into common methods.
  2. Ensure code changes are covered by tests.
  3. Verify fixes with a SonarCloud re-scan.
mbrzus commented 9 months ago

Duplicates decreased and Sonarcloud checks pass.