My IntelliJ is showing warnings in Red color. For example "Whitespace at end of line", "Are you sure you want to println? If yes, ...."
I have tried changing the setting at many place, no avail. For now, I am using Scala.
EDIT: I still want to see the warning, but not in Red color. I have tried changing this in the following settings, but it did not help. Where else can this be fixed?
As @MateuszKubuszok mentioned in the comment, it is a scalastyle error. Here is the place that holds part of the message you are seeing. Basically you have three options:
Fix that warning by removing the spaces. (The best IMHO)
Wrap this line in
scalastyle:off
as suggested:Disable this rule. At the root of this project there is a file called
scalastyle-config.xml
. In it there is a line:Change it into:
will make this rule to not check your code.