[EXCONTRANS-192] SONAR - Report - Code Quality Created: 07/May/18  Updated: 20/Jul/18  Resolved: 09/May/18

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Task Priority: Neutral
Reporter: Adrien Manzoni Assignee: Trung Luu
Resolution: Fixed Votes: 0
Labels: codereview
Remaining Estimate: 0d
Time Spent: 3d
Original Estimate: 3d

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Sprint: Scrum Sprint 7

 Description   

Here is a non exhaustive list of what we need to amend before release any stable version:

  1. The complexity of many methods are a way to high 
  2. We should not throw RuntimeException or Exception directly, we should create our own exception
  3. We miss code comment and java doc comment on most methods (whit the right number of @param attributes)
  4. We need to remove all the FIXME and TODO
  5. We need to remove the e.printStackTrace()
  6. We should use Objects.equals() whenever we want to check whether 2 objects are equal
  7. We should remove all the string concatenation and replace them with StringBuilder of String.format()
  8. We need to simplify our if statements
  9. We need to externalise the duplicate code
  10. We need to cover the code with unit test

Generated at Mon Feb 12 00:28:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.