Add support for "warnings as errors"

Yes, I think other packages' documentation warning should not affect the main target. I think we could either just suppress all the diagnostic from other packages or the warnings-as-errors transform should only work for the main target.

If we choose the former, it will be another PR which does not block the current discussed PR.

2 Likes