XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.30.0
    • Labels:
    • Complexity:
      Low

      Description

      SonarQube:

      If a boolean expression doesn't change the evaluation of the condition, then it is entirely unnecessary, and can be removed. If it is gratuitous because it does not match the programmer's intent, then it's a bug and the expression should be fixed.

      Problem:
      Checking a logical variable a moment after you set its value yourself.

      Solution:
      Removal of unnecessary checking.

      Where the problem occurs:

      Support materials:

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              gracebish grace nakiguli
              Reporter:
              sacull Lukasz Debicki
              Designated Committer:
              Daniel Kayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week
                  1w