JasperFx / oakton

Parsing and Utilities for Command Line Tools in .Net
http://jasperfx.github.io/oakton
Apache License 2.0
308 stars 41 forks source link

Enable nullable reference types in Oakton project #102

Open ArturDorochowicz opened 3 weeks ago

ArturDorochowicz commented 3 weeks ago

Enable nullable reference types in Oakton project. This enables nullability warnings for the project (a number of them are reported now). Also, it will default newly added files to be nullable-enabled.

Prior nullable-oblivious types are preserved by adding #nullable disable annotations to nearly all files (apart from two that had #nullable enable pragmas, some files in Internal.Conversions that used nullable references in signatures, and some files where the pragma is clearly redundant).