Skip to content

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)

// 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
@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