Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalaStyle key no longer accessible from ScalastylePlugin object #65

Open
dxuhuang opened this issue Sep 14, 2017 · 3 comments
Open

scalaStyle key no longer accessible from ScalastylePlugin object #65

dxuhuang opened this issue Sep 14, 2017 · 3 comments

Comments

@dxuhuang
Copy link

dxuhuang commented Sep 14, 2017

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.

@matthewfarwell
Copy link
Member

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

@dxuhuang
Copy link
Author

Documentation update at the very least would be greatly appreciated.

@matthewfarwell
Copy link
Member

matthewfarwell commented Sep 26, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants