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

Support when statement without expression

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: AST
    • Labels:
      None
    • Estimate:
      Hours

      Description

      Main affected language: Kotlin

       

      Affected rules: RSPEC-131RSPEC-134RSPEC-1479RSPEC-1862RSPEC-3923RSPEC-1871

       

      • Kotlin

      KtWhenExpression -> MatchTreeImpl 75%, NativeTreeImpl 25%

      when {
         cond1 -> println("1")
         cond2 -> println("2")
         else -> println("3")
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: