scalastyle-sbt-plugin
scalastyle-sbt-plugin copied to clipboard
`scalaStyle` key no longer accessible from `ScalastylePlugin` object
The example given in http://www.scalastyle.org/sbt.html
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
no longer works because all the keys are now in the autoImport object. Is there a reason for the change? Even though there is import autoImport._, this only makes the key accessible inside ScalastylePlugin itself; you can no longer write ScalastylePlugin.scalastyle directly.
We have to do
import org.scalastyle.sbt.ScalastylePlugin.autoImport._
to get it working.
Is this a problem, or is this just a documentation problem?
Documentation update at the very least would be greatly appreciated.
A PR would be great: https://github.com/scalastyle/scalastyle.github.com/blob/master/sbt.markdown
If you don't do it, then I will get around to it in the next week or so.