Sergey Teplyakov

Results 86 issues of Sergey Teplyakov

For instance, the following code should be marked as dangerous: ```csharp var sb = new StringBuilder(); sb.AppendFormant($"Stuff {someStuff}"); ```

Add an attribute `NoHeapAllocation` and `AllowHeapAllocation`. User can put an attribute on assembly, class or member level. If the attribute is present than the member should follow some heap allocation...

For instance, in `new ArgumentException("argName")` to switch to `new ArgumentException(nameof(arg))`.

- Warn on `async void` - Warn on `Task.Result`/`Task.Wait` prefer `Task.GetAwaiter().GetResult` because later will unwrap exception. Question: how to catch correct cases? - Warn on incorrect preconditions in async methods

Suggest to convert it to pass by 'in'.

I'm not sure that there is a case when this is fine. Fade an unused parameter.