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

Support additional locations for external annotations #38

Closed bkoelman closed 5 years ago

bkoelman commented 6 years ago

To support running in JetBrains Rider, we should additionally scan in folders like "c:\Program Files\JetBrains\JetBrains Rider 2018.1\lib\ReSharperHost\ExternalAnnotations\"

And finally, now that nuget packages are cached in the user profile folder, we may also scan below "%USERPROFILE%\.nuget\packages\jetbrains.externalannotations\". This makes it possible for consumers to add a NuGet reference to the JetBrains.ExternalAnnotations package and enable their project collaborators without Resharper installed to build the solution with warnaserror enabled in VS.

bkoelman commented 5 years ago

Implemented in https://github.com/bkoelman/ResharperCodeContractNullability/commit/47d494541aa67a9f62e772eb6a63a710de7d1a53 and https://github.com/bkoelman/ResharperCodeContractNullability/commit/c862aef3b472de428dd036f00b4b9b3bf8162543.