Skip to content

Question about -Wconf discrepancy between scala 2 and scala 3 #18365

Closed Answered by som-snytt
coreywoodfield asked this question in General Question
Discussion options

You must be logged in to vote

I'm pretty sure your intuition is correct, that both versions should work approximately the same way.

The Scala 2 option specifies that it accumulates in prepend mode, with the semantics that "last config wins" because it winds up first in priority.

Scala 3 options are different, so I could not guess without inspection. Probably you're right that they forgot to reverse.

"User config" is as opposed to default config, I assume. So it's handy that "last wins".

To veer off-topic, not all options are "last wins." For example, linting respects if a lint is explicitly turned off, even if some other settings want to turn it on.

In this case, arguably, if I "silence" or "suppress" a category, I do…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by coreywoodfield
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants