Skip to content

Commit 73c48b9

Browse files
Merge pull request #35 from Andrei-Constantin-Programmer/submission
Submission
2 parents 1069c9c + 6c61391 commit 73c48b9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ setx SONARQUBE_TOKEN "paste-your-token"
9999
# Restart the terminal afterwards
100100
```
101101

102+
### Run SonarQube
103+
```bash
104+
python remediate_repos.py
105+
--token SONARQUBE_TOKEN # If you haven't added a token in the environment
106+
```
107+
102108
### Run the Remediator
103109
```bash
104110
python AntiPattern_Remediator/main.py
@@ -122,4 +128,4 @@ Verify JDK 11 and Maven are on `PATH`.
122128
- **IBM** - For providing technical expertise and computational resources, and mentorship from Dr Amrin Maria Khan and Prof. John McNamara
123129
- **University College London (UCL)** - For research guidance and academic support, under the supervision of Dr Jens Krinke
124130
- **LangChain Community** - For the foundational LLM orchestration framework
125-
- **Ollama Project** - For making LLM deployment accessible and efficient
131+
- **Ollama Project** - For making LLM deployment accessible and efficient

sonarqube_tool/sonarqube_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ def save_all_issues(self, project_key: str, file_path: str) -> None:
174174
if __name__ == "__main__":
175175
api = SonarQubeAPI()
176176
project_key = "commons-lang"
177-
file_path = "src\main\java\org\apache\commons\lang3\BooleanUtils.java"
178-
test_file_path = "src/main/java/org/apache/commons/lang3/BooleanUtils.java"
179-
issues_file_path = "D:\FILES\IBM-Project-Analysis-Results\common-lang3.9-original\issues.json"
177+
file_path = "path/to/java/file" # Testing if SonarQube is working
178+
issues_file_path = "path/to/issues.json (post-transformation analysis requirement)"
180179
rule_key_1 = "java:S2160"
181180
rule_key_2 = "java:S1117"
182181
rule_key_3 = "java:S5993"

0 commit comments

Comments
 (0)