Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-334 FP due to dynamic code evaluation and string interpolation
  3. SONARSLANG-524

[Scala] FP Unused{Variable/FunctionParameter} string interpolation

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Not an issue
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Component/s: Scala
    • Labels:
      None

      Description

      val name = "James"
      println(s"Hello, $name")  // is used
      
      val value = 1
      println(s"1 + 1 = ${value + 1}") // is used
      
      val height = 1.9d
      val person = "James"
      println(f"$person%s is $height%2.2f meters tall")  // is used
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrei.epure Andrei Epure
              Reporter:
              andrei.epure Andrei Epure
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: