Skip to content

issues Search Results · repo:DotNetAnalyzers/IDisposableAnalyzers language:C#

Filter by

311 results
 (52 ms)

311 results

inDotNetAnalyzers/IDisposableAnalyzers (press backspace or delete to remove)

In Unit Tests the analyzer treats the setup and teardown methods specially in the sense, that a disposable created in a setup method and disposed in a tear down method do not generate IDISP003 and IDISP006 ...
  • Pretasoc
  • Opened 
    8 days ago
  • #578

I m thinking about working on a PR (see #576), but the project currently doesn t build/test on my machine (macOS). I have a few patches that I apply locally to get the project to build. Most of those are ...
  • Bouke
  • Opened 
    on Dec 4, 2024
  • #577

Classes like the standard library s MemoryManager T have an abstract dispose method, which cannot be called despite the lint asking for it to be invoked. sealed class Manager : MemoryManager byte { ...
  • Emik03
  • Opened 
    on Oct 30, 2024
  • #575

IDISP004 is triggered on calls to GetDbConnection(). However we must not dispose the returned IDisposable, as per the documentation: This connection should not be disposed if it was created by Entity ...
  • Bouke
  • Opened 
    on Sep 13, 2024
  • #573

IDisposableAnalyzers version: 4.0.7 I have a scenario similar to this: using System.Reactive; using System.Reactive.Subjects; namespace Demo; internal sealed class Test { private IObservable Unit ...
  • hwndmaster
  • 2
  • Opened 
    on May 16, 2024
  • #571

I have a request for advise in a specific situation. In our library we have a cache with a GetOrCreate method. This is not an uncommon patterns, see, for instance, MemoryCache.GetOrCreateAsync. The IDisposableAnalyzer ...
  • pauldendulk
  • 1
  • Opened 
    on Dec 18, 2023
  • #552

Hi @JohanLarsson, I m hitting AD0001 for the following snippet with version 4.0.7: namespace AnalyzerRepro; internal class Program { static void Main(string[] args) { Console.WriteLine( ...
  • trympet
  • Opened 
    on Dec 4, 2023
  • #547

Use of MemoryStream triggers IDISP001 and IDISP004 however, while MemoryStream implements IDisposable it doesn t actually have disposable resources. CA2000 has a special case for Stream types because ...
  • erichiller
  • Opened 
    on Nov 7, 2023
  • #541

I wanted to use this analyzer primarily to detect missing @implements IDisposable delcarations in Blazor components that contain a Dispose() function, but after testing, it seems not to be supported. ...
  • gaelj
  • Opened 
    on Oct 24, 2023
  • #536

var imageStream = new MemoryStream(); return File(imageStream, image/png ); Should not trigger IDISP001 https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.controllerbase.file?view=aspnetcore-7.0 ...
  • ondrejholik
  • Opened 
    on Oct 17, 2023
  • #535
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub