-
Notifications
You must be signed in to change notification settings - Fork 55
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
Is it possible to disable the unused warnings for generated src code in target/src_manged
?
#125
Comments
Not the same, but in Scala 2.13 you can suppress warnings in a directory: Compile / scalacOptions += "-Wconf:src=target/.*:silent" // suppress all warnings for autogenerated files |
@iRevive's suggestion is how I've seen most projects deal with this problem (see e.g. https://github.com/hmrc/transit-movements-guarantee-balance/blob/main/build.sbt#L45), but if your code generator uses a custom sbt configuration (i.e. not |
I came to the repo specifically to find this info - maybe it should be added to the README? |
Is there a similar option for Scala 3? |
@hugo-vrijswijk The Compiler Options Lookup Table says that |
I think the syntax might be different, or it is unsupported:
|
Unfortunately it looks like the |
fyi |
Confirmed: the following worked for the ScalaPb generated classes on Scala 3.5.1 |
No description provided.
The text was updated successfully, but these errors were encountered: