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

Globally enable nullability in XML #41438

Merged
merged 2 commits into from
Aug 27, 2020
Merged

Globally enable nullability in XML #41438

merged 2 commits into from
Aug 27, 2020

Conversation

krwq
Copy link
Member

@krwq krwq commented Aug 27, 2020

  • disables nullability in XSLT runtime
  • disables nullability in .tt templates (+ some whitespace fixes)
  • pulls trigger for whole System.Private.Xml project and enables annotations globally (and remove individual #nullable enable)

@@ -1,5 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct to disable nullability on files inside of the Common folder?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it for now because other projects depend on it and enabling is causing errors which I do not want to fix as part of this PR. I'll open the issue on this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this disabled?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XSLT runtime is only used by generated code and won't help customers as none of these APIs is meant for consumption so not worth annotating (in long term perhaps to find some NREs but we got limited time now so this part was cut)

Copy link
Member

@jozkee jozkee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@krwq krwq merged commit 503d560 into dotnet:master Aug 27, 2020
carlossanlop pushed a commit to carlossanlop/runtime that referenced this pull request Aug 28, 2020
* Globally enable nullability in XML

* remove double #nullable enable in the file
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants