Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-335

[Apex] Support TernaryExpr in AST conversion

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: AST
    • Labels:
      None

      Description

      The following rules could benefit from the support or Apex ternary operators:

      • RSPEC-1125 Boolean literals should not be redundant
      • RSPEC-3923 All branches in a conditional structure should not have exactly the same implementation

      Respective RSPEC should be updated accordingly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alban.auzeill Alban Auzeill
                Reporter:
                alban.auzeill Alban Auzeill
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: