-
Notifications
You must be signed in to change notification settings - Fork 75
[KAIZEN] Turn some warnings into errors #1079
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
[KAIZEN] Turn some warnings into errors #1079
Conversation
Print summaries for the remaining ones
build.sbt
Outdated
// https://www.scala-lang.org/2021/01/12/configuring-and-suppressing-warnings.html | ||
// cat={warning-name}:ws prints a summary with the number of warnings of the given type | ||
// any:e turns all remaining warnings into errors | ||
"-Wconf:cat=deprecation:ws,cat=lint-package-object-classes:ws,cat=unused:ws,cat=lint-infer-any:ws,cat=lint-byname-implicit:ws,cat=other-match-analysis:ws,any:e", |
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.
We should aim to gradually make the list of cat={}:ws
thinner
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.
I think it's great to reduce the noise during dev. I think a way to make it display the full warning easily would be useful though. Something like an env var (but maybe there is a more elegant way):
"-Wconf:cat=deprecation:ws,cat=lint-package-object-classes:ws,cat=unused:ws,cat=lint-infer-any:ws,cat=lint-byname-implicit:ws,cat=other-match-analysis:ws,any:e", | |
if (sys.env.get("MANTIS_FULL_WARNS").contains("true")) | |
"" | |
else | |
"-Wconf:cat=deprecation:ws,cat=lint-package-object-classes:ws,cat=unused:ws,cat=lint-infer-any:ws,cat=lint-byname-implicit:ws,cat=other-match-analysis:ws,any:e", |
usage: MANTIS_FULL_WARNS=true sbt compile
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.
Sounds good, but I would be explicit and put "-Wconf:any:w"
in there
Retain old settings for Compile/doc (otherwise derivation build fails in buildkite)
ece68a2
to
6999867
Compare
Closing in favor of #1081 |
No description provided.