I have some issues with scala.
I got this error when I run scalastyle
illegal start of simple expression
This question is linked with other questions about scalastyle illagal error but I tried all solutions proposed but nothing has fixed the error.
Here is the piece of my code And the error is located in the if-statement at netexr function.
case class EXT (ev: Seq[String])
val schema = StructType(Seq(
StructField("label", DoubleType)
))
def hasVis(ev: Seq[String]): Boolean = ev.toSet.exists(videoV.contains)
def hasCom(ev: Seq[String]): Boolean = ev.toSet.exists(videoC.contains)
def nexter: EXT => Seq[Row] = (extension: EXT) => Seq(new GenericRowWithSchema(
Array(if (hasVis(extension.ev) && hasCom(extension.ev)) 1.0 else 0.0), schema))
Thank you for your help