bkoelman / ResharperCodeContractNullability

Reports diagnostics, helping you to annotate your source tree with (Item)NotNull / (Item)CanBeNull attributes.
https://www.jetbrains.com/resharper/help/Code_Analysis__Code_Annotations.html
Apache License 2.0
26 stars 4 forks source link

Configurable reporting on nullable value types #23

Closed bkoelman closed 8 years ago

bkoelman commented 8 years ago

Fixes #21

To preserve backwards compatibility, reporting on nullable value types is enabled by default. To make transition easy, I've added an extra fix option that creates a configuration file in the project that turns off reporting on nullable value types.

Unfortunately, a bug in Visual Studio prevents a fully automatic experience. Therefore some additional manual steps are needed. Help is displayed in the preview window of the fix action.

bkoelman commented 8 years ago

To get solution-wide suppression, you can move the created configuration file to a top-level shared folder and link to it from the project file, for example:

    <AdditionalFiles Include="..\ResharperCodeContractNullability.config">
      <Link>ResharperCodeContractNullability.config</Link>
    </AdditionalFiles>