Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-3039

S868: Adjust the rule to be useful in the context of S864

    XMLWordPrintable

    Details

      Description

      RSPEC-864 describes a more generic rule, as compared to RSPEC-868, which is based on MISRA.
      The generic idea is identical for both rules: "make evaluation order explicit".
      RSPEC-868 focuses on logical operators || and &&, while
      RSPEC-864 applies it to all expressions excluding the ones covered by 868.
      This might confuse the user as to what rule they need and why there are two rules for the same problem.

      Discuss potential solutions, such as:

      • deprecating RSPEC-868 in favor of RSPEC-864 or
      • specializing RSPEC-868 to match the MISRA specification exactly and market it for MISRA users.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              arseniy.zaostrovnykh Arseniy Zaostrovnykh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: