scalastyle-sbt-plugin icon indicating copy to clipboard operation
scalastyle-sbt-plugin copied to clipboard

`scalaStyle` key no longer accessible from `ScalastylePlugin` object

Open dxuhuang opened this issue 8 years ago • 3 comments

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.

dxuhuang avatar Sep 14 '17 18:09 dxuhuang

Is this a problem, or is this just a documentation problem?

matthewfarwell avatar Sep 20 '17 09:09 matthewfarwell

Documentation update at the very least would be greatly appreciated.

dxuhuang avatar Sep 20 '17 20:09 dxuhuang

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.

matthewfarwell avatar Sep 26 '17 17:09 matthewfarwell