ExternalAnnotations
ExternalAnnotations copied to clipboard
JetBrains ReSharper External Annotations
``` using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; public class C { private readonly HttpClient _httpClient = new(); public async Task GetResult() { var response = await _httpClient.GetFromJsonAsync(new Uri("")); } private...
There are lots of extension methods that do not allow `null` extension argument. Currently they don't have neither NRT annotations nor extension annotations so it leads to missing warnings when...
https://github.com/vbfox/NLogResharperAnnotations
The sample program below generates a pair of incorrect warnings on the All() method calls. In both cases it is assuming the invocation is a pure method and the line...
In particular, please add `[MeansImplicitUse]` to `HtmlTargetElement` and `HtmlAttributeName`
Are there any plans to provide an automated synchronized way to switch between use of annotations.xml and code attributes, possibly choosing annotations source? Imagine an external repository which is being...
https://www.nuget.org/packages/System.Interactive/
Could include annotations for [FluentAssertions](https://fluentassertions.com/) testing library. Then a code like the below would not trigger a null warning: ```csharp sut.Should().NotBeNull(); sut.Description.Should().Be(expectedDescription); // ↳ Null warning here ```
I am building annotations for an internal package. The starting point is to use the process of launching visual studio with a /ReSharper.Internal argument, assure the project is in the...
For instance Convert.ToString(string) doesn't do anything and can be annotated as: ```cs [ContractAnnotation("s: notnull => notnull; s: null => null")] public static string ToString(string s); // { return s; }...