diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-09-23 15:12:12 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-09-23 15:15:58 +0200 |
| commit | afc195286ff3cc0e08d51d75d3031e17108b495d (patch) | |
| tree | 25414e06955843c1358a24f4d0059d52afb3c60a /jellyfin.ruleset | |
| parent | eb5f76a4470994ba1aaab4eb64b1d40f96a202d6 (diff) | |
Start adding IDisposableAnalyzers to projects
Diffstat (limited to 'jellyfin.ruleset')
| -rw-r--r-- | jellyfin.ruleset | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/jellyfin.ruleset b/jellyfin.ruleset index 4f01695888..870cf253f2 100644 --- a/jellyfin.ruleset +++ b/jellyfin.ruleset @@ -173,4 +173,18 @@ <!-- error on RS0030: Do not used banned APIs --> <Rule Id="RS0030" Action="Error" /> </Rules> + + <Rules AnalyzerId="IDisposableAnalyzers" RuleNamespace="IDisposableAnalyzers.Correctness"> + <!-- disable warning IDISP001: Dispose created --> + <Rule Id="IDISP001" Action="Info" /> + <!-- TODO: Enable when false positives are fixed --> + <!-- disable warning IDISP003: Dispose previous before re-assigning --> + <Rule Id="IDISP003" Action="Info" /> + <!-- disable warning IDISP004: Don't ignore created IDisposable --> + <Rule Id="IDISP004" Action="Info" /> + <!-- disable warning IDISP007: Don't dispose injected --> + <Rule Id="IDISP007" Action="Info" /> + <!-- disable warning IDISP008: Don't assign member with injected and created disposables --> + <Rule Id="IDISP008" Action="Info" /> + </Rules> </RuleSet> |
