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

Support function parameters with default value

    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: Scala, Kotlin

       

      Affected rules: RSPEC-117

       

      • Scala 
        scala.meta.Term$Param$TermParamImpl -> NativeTreeImpl 61%, ParameterTreeImpl 39%
      def f1(i: String = "Default") = ...

       

      • Kotlin
        KtParameter -> ParameterTreeImpl 91%, NativeTreeImpl 9%
      fun foo(i: String = "Default") ...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: