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

Adjust deprecation config after Wconf #10750

Open
wants to merge 2 commits into
base: 2.13.x
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Apr 10, 2024

Fixes scala/bug#12984
Fixes scala/bug#12664

Instead of adding wconf for deprecation when setting is selected, adjust the default filter. This ensures that user config is respected in this respect.

Otherwise, subtle order dependency is not friendly.

Instead of setting maxwarn, nowarn is a trailing -Wconf:any:s. That is, any unconfigured warnings are silenced. Configured warnings are counted and reported in the usual way.

@scala-jenkins scala-jenkins added this to the 2.13.15 milestone Apr 10, 2024
@som-snytt som-snytt force-pushed the issue/12984-wconf-deprecation branch from 801b298 to 820ad16 Compare April 11, 2024 01:19
@som-snytt
Copy link
Contributor Author

som-snytt commented Apr 11, 2024

Somewhere in the -Wconf PR, there was a "reset setByUser", a facility I needed for the test (WConfTest.default).

Reporting adjusts the deprecation conf depending on deprecation.isSetByUser.

Note: revisit reset impls

@som-snytt som-snytt force-pushed the issue/12984-wconf-deprecation branch 2 times, most recently from c140068 to ce202a3 Compare May 9, 2024 10:32
@som-snytt som-snytt force-pushed the issue/12984-wconf-deprecation branch from ce202a3 to 7da120c Compare May 9, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants