-
Notifications
You must be signed in to change notification settings - Fork 185
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
Enable scalafix plugin #1218
Enable scalafix plugin #1218
Conversation
20397b8
to
1eb1b55
Compare
I have issues with semanticdb file not generated for tests anymore. |
I think this is because you added the semanticdb compiler plugin via the sbt 1.3.x way ( scalafix/project/ScalafixBuild.scala Lines 83 to 92 in dad3921
|
02d3d06
to
83664f5
Compare
To fix the issue, I just didn't enable scalafix-semanticDb in the entire build. I don't know if it's the correct way to fix the issue I was experimenting with. |
I think we should keep it everywhere - but you need to stick to one way to enable the plugin, not two as I mentioned above (probably the sbt 1.3 way documented in https://scalacenter.github.io/scalafix/docs/users/installation.html#sbt since we are running 1.3+) |
As for whether we should enable a few rules on the project itself: yes I think it's always good to eat your own dog food! |
+ put together scalafix and scalafmt tests.
*except in test where we compile small virtual files
* deactivate a small snippet of code in docs. This snippet is supposed to fail, and it's failing when evaluated, but mdoc reports `Expected compile errors but program compiled successfully without errors`
A weird error is now happening with mdoc. val x: Int = ""
And of course, it also fails if we remove mdoc |
@bjaglin I would like another review on this (since it required a rebase every time.) Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's get that in, I can open a PR to address #1218 (comment) if you want?
Now, it only uses the new way of semanticdb (sbt 1.3+). I removed all "org.scalameta" % "semanticdb-scalac". |
It's left only as Library dependency for Rules, since it's used to read semanticdb files. |
No description provided.