Reputation: 165
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
Reputation: 11
Error is because of an extra comma
corrected code : def args: List[String] = List( "parameter1" )
Upvotes: 0
Reputation: 165
It's because of extra comma. So the correct way is:
def args: List[String] = List(
"parameter1"
)
Upvotes: 0