Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5598

Code in Java stub classes generated by wsdl2java when analyzed by Sonar/SonarQube shows a large number of critical and major violations

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: codegen
    • Labels:
      None
    • Environment:
      Sonar Profile used - Sonar way with Findbugs

      Description

      Types of Critical violations reported:

      • Security - Array is stored directly
      • Empty If Stmt
      • Dodgey - Dead store to local variable
      • Performance - Private method is never called
      • Correctness - Possible null pointer dereference in method on exception path

      Types of Major violations reported:

      • Unused local variable
      • Visibility Modifier
      • While loops must use braces
      • Cyclomatic Complexity

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mj4its Michael Jones

              Dates

              • Created:
                Updated:

                Issue deployment