size.of.world
size.of.world

Reputation: 165

Q&A - scalastyle - illegal start of simple expression: Token(RPAREN,),135,))

The original codes:

  def args: List[String] = List(
    "parameter1",
  )

When run scalastyle, the error message is:

illegal start of simple expression: Token(RPAREN,),135,))

The error message didn't show any information.

Upvotes: 0

Views: 262

Answers (2)

Abhijith TA
Abhijith TA

Reputation: 11

Error is because of an extra comma

corrected code : def args: List[String] = List( "parameter1" )

Upvotes: 0

size.of.world
size.of.world

Reputation: 165

It's because of extra comma. So the correct way is:

  def args: List[String] = List(
    "parameter1"
  )

Upvotes: 0

Related Questions