Skip to content

WIP: sonarqube issue fixes - #1971

Closed
Caesarsage wants to merge 4 commits into
microcks:1.13.xfrom
Caesarsage:sonaqube-code-quality
Closed

Caesarsage wants to merge 4 commits into
microcks:1.13.xfrom
Caesarsage:sonaqube-code-quality

Conversation

@Caesarsage

@Caesarsage Caesarsage commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Addresses issues in batch group by commits message

  • Low-risk Sonar issues: 1e54826
  • Correctness and security issues: bdead9d
  • Type and Serialization Cleanup: 82c3243
  • Complexity and readability refactors: 5281307
  • Test smell cleanup:

Validated with:

  • mvn -pl minions/async test -DskipITs
  • mvn -pl webapp -Dtest=MessageServiceTest test
  • mvn -pl webapp -DskipTests test-compile

Related issue(s)

See #1883

Address low-risk Sonar issues:\n- remove unused imports\n- simplify single-expression lambda\n- replace lambda filters with method references\n- remove unused parameter/assignment in fuzz helper\n\nValidated with:\n- mvn -pl minions/async test -DskipITs\n- mvn -pl webapp -Dtest=MessageServiceTest test\n- mvn -pl webapp -DskipTests test-compile

Signed-off-by: caesarsage <[email protected]>
Address Sonar issues in listener/task/controller paths:\n- avoid Optional#get without presence check\n- preserve interrupt status on InterruptedException\n- catch Exception instead of Throwable\n- replace generic throws Exception with specific checked exceptions\n- remove user-controlled value from webhook operationId error log path\n\nValidated with:\n- mvn -pl webapp -Dtest=ListenerCommonsTest test\n- mvn -pl webapp -DskipTests test-compile

Signed-off-by: caesarsage <[email protected]>
Address Sonar issues around wildcard API types and serialization:\n- use List<Exchange> return types in MessageService event APIs\n- align TestController event endpoint return type\n- make ReplyInfo Serializable and document default constructor intent\n\nValidated with:\n- mvn -pl commons/model -DskipTests compile\n- mvn -pl webapp -Dtest=MessageServiceTest test

Signed-off-by: caesarsage <[email protected]>
@lbroudoux

Copy link
Copy Markdown
Member

Ouch... that starts to represent a lot of changes in different unrelated part of the code base. Can you split in smaller and focused PRs?

@Caesarsage

Copy link
Copy Markdown
Contributor Author

Ouch... that starts to represent a lot of changes in different unrelated part of the code base. Can you split in smaller and focused PRs?

okay. i will do that

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale State due to inactivity label Apr 30, 2026
@github-actions github-actions Bot closed this May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale State due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants