SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2238

Rule: An unconditional break statement shall terminate every non-empty switch-clause

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FLEX-1.2
    • Component/s: Flex
    • Labels:
      None
    • Number of attachments :
      0

      Issue Links

        Activity

        Hide
        Freddy Mallet added a comment -

        Manually tested !

        When the default case is the last one(which is done intentionally 99.99% of the time), I would not log a violation.

        Show
        Freddy Mallet added a comment - Manually tested ! When the default case is the last one(which is done intentionally 99.99% of the time), I would not log a violation.
        Hide
        Evgeny Mandrikov added a comment -

        As was discussed - as in MISRA C/C++ standard: default case also requires break, even if it's last. But we can adjust this later based on reaction from community.

        Show
        Evgeny Mandrikov added a comment - As was discussed - as in MISRA C/C++ standard: default case also requires break, even if it's last. But we can adjust this later based on reaction from community.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Evgeny Mandrikov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: