-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Check for explicit result types in public API #2922
Conversation
is it just --check that doesnt work, but fix does? If so we could go back to the earler |
Unfortunately not. A pure |
So this is a bit random, but I dug into this a bit since when trying to run a scalafix rule from within Metals it also fails with a import mill._, scalalib._
object millTest extends ScalaModule {
def scalaVersion = "2.13.12"
} And then I do have a
This comes from here in Scalafix. It was totally by chance that it then clicked. There is a mistake here that I made that Mill doesn't care about. My module name is |
@ckipp01 Thanks for commenting. From looking at all the Just in case you're suspicios (like me) whether it could be related to how Mill generates semanticdb data, I have to say, I tried out mill-scalafix a long time ago (maybe 2-3 years?), even before it started to use Mill's |
I guess, I'll open an issue in mill-scalafix as well. |
This reproduces an issue discovered in a Mill PR * com-lihaoyi/mill#2922
I'm able to reproduce the issue in a mill-scalafix integration test, so this seems to be an upsteam bug. |
This reproduces an issue discovered in a Mill PR * com-lihaoyi/mill#2922
This reproduces an issue discovered in a Mill PR * com-lihaoyi/mill#2922
c033120
to
00cc1fd
Compare
So, I don't have much experience with scalafix. I'd expect that this change should detect / modify a lot of sources where we have missing type annotations, but it doesn't. Any help is welcome.