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

FN S125(CommentedCodeCheck) support code starting with '.'

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: Rules
    • Labels:
      None

      Description

      When a comment start with a '.', it is not seen as code.
      FN example at reforest/src/main/scala/reforest/util/CCUtil.scala:47

          val conf = new SparkConf()
            .setMaster(property.sparkMaster)
            .setAppName(property.appName)
            .set("spark.executor.memory", property.sparkExecutorMemory)
            .set("spark.storage.blockManagerSlaveTimeoutMs", property.sparkBlockManagerSlaveTimeoutMs)
            .set("spark.shuffle.manager", property.sparkShuffleManager)
            .set("spark.shuffle.consolidateFiles", property.sparkShuffleConsolidateFiles)
            .set("spark.io.compression.codec", property.sparkCompressionCodec)
      //      .set("spark.akka.frameSize", property.sparkAkkaFrameSize)
            .set("spark.rpc.message.maxSize", property.sparkAkkaFrameSize)
            //.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
            .set("spark.driver.maxResultSize", property.sparkDriverMaxResultSize)
            .set("spark.core.connection.ack.wait.timeout", 600.toString)
            .set("spark.driver.maxResultSize", 0.toString)
      //      .set("spark.executor.extraClassPath", property.sparkExecutorExtraClassPath)
          //                            .set("spark.task.cpus", "8")
          //    .setJars(Array(property.jarPath)
          //)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                alban.auzeill Alban Auzeill
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: