Hi All,
I am using scalstyle for a new project, and am trying to adapt it to my needs. I noticed that the "Public method must have explicit type" rule is very strict.
For example, it requires a type for local methods, like in
def x : Int = {
def y = ...
...
}
or for methods in private objects, like
sealed trait A
object A {
class Impl extends A {
def foo() = ...
}
}
In both of these cases, the methods are not really public, so requiring a return type is somewhat excessive. Is it possible to switch off the "Public method must have explicit type" messages in these cases (maybe by writing a new rule), or is this too complex?
Cheers,
Rüdiger