Questions tagged [scalastyle]

Scalastyle is a style checker for Scala.

Scalastyle examines your Scala code and indicates potential problems with it. If you have come across Checkstyle for Java, then you’ll have a good idea what scalastyle is. Except that it’s for Scala obviously.

For more information, see http://www.scalastyle.org/

51 questions
0
votes
1 answer

Scala method name length convention

I'm looking into code smells that have an impact on the readability of an application. I came across long method names and I was wondering if there is a convention for this. I've checked the naming conventions in the scaladocs but it didn't list…
RemcoW
  • 4,196
  • 1
  • 22
  • 37
0
votes
1 answer

scalastyle is complaining about akka send of boolean

sender ! true and sender ! false are generating "Boolean expression can be simplified" warnings by scalastyle. How can I make these warnings go away?
zzztimbo
  • 2,293
  • 4
  • 28
  • 31
0
votes
1 answer

Running scalastyle in a SBT multi project build

I've a SBT project on a multi-project build set up. root sub-projectA (root depends on it) sub-projectB (root depends on it) I'd like to run scalastyle for only a few files within the project, which could be located in any of the three projects.…
hasumedic
  • 2,139
  • 12
  • 17
0
votes
1 answer

How check naming convention for logger variables in scala with scalastyle?

Suppose I need to ensure that all loggers in my scala code are named log only, not LOGGER, LOG or logger. So for this style checking I need to define a Logger (for slf4j or log4j) and when style checker detects a variable with this type it check…
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
1 answer

Scala formatter - show named parameter

I have a relatively large Scala code base that does not use named parameters for any function/class calls. Rather than going in and manually entering it, which would be a very tedious process, I was looking at a formatter to do the job. The best I…
stan
  • 4,885
  • 5
  • 49
  • 72
-1
votes
1 answer

IntelliJ CE Red Markers

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…
kk1957
  • 8,246
  • 10
  • 41
  • 63
1 2 3
4