Skip to content

IBM-31: Full repository run through#29

Merged
Andrei-Constantin-Programmer merged 3 commits into
mainfrom
IBM-31-Full-Repository-Run-Through
Aug 27, 2025
Merged

IBM-31: Full repository run through#29
Andrei-Constantin-Programmer merged 3 commits into
mainfrom
IBM-31-Full-Repository-Run-Through

Conversation

@vmc99

@vmc99 vmc99 commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator

Added Full repository run-through functionality to AntiPattern Remediator

  1. Scans the jacoco_results dir to fetch the files with 100% coverage from the selected repo.
  2. Backup the current processing repo into the backups dir.
  3. Saves the refactored code to the original Java files (clones dir)
  4. Saves Intermediate results (as of now, only Anti-Pattern Scanner, Refactoring Strategy Results) of each Java file in markdown files and a complete processing summary in JSON. (everything in root dir)
  • Steps to check the full repository run-through:

    • Run the Jacoco tool and the SonarQube tool
    • And then run python main.py
  • Updated antipattern_scanner.py to include SonarQube issues (context) - Thanks to @ucabm57 (Maoqin)

  • Updated the antipattern_scanner.yaml prompt to read SonarQube issues

  • Updated code_transformer.py to strip common wrappers (example: ”””, ‘’’) from the refactored code, issue seen with granite 3.3:8b model. Also slightly changed the prompt code_transformer.yaml to not include docstrings, but it still generates with them.

ucabm57 and others added 3 commits August 21, 2025 14:54
- Added full repo workflow and required utility functions
- Updated Anti-pattern scanner to include SonarQube context
- Updated code transformer to strip docstrings from refactored code while using Granite 3.3:8b

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Code lgtm, testing WIP. Approved, can be merged. We can sort out the kinks later.

@Andrei-Constantin-Programmer Andrei-Constantin-Programmer merged commit 4b2c453 into main Aug 27, 2025
1 check passed
@Andrei-Constantin-Programmer Andrei-Constantin-Programmer deleted the IBM-31-Full-Repository-Run-Through branch August 27, 2025 08:39
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.

3 participants