diff options
Diffstat (limited to 'jellyfin.ruleset')
| -rw-r--r-- | jellyfin.ruleset | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jellyfin.ruleset b/jellyfin.ruleset index cc7c54b97..1c834de82 100644 --- a/jellyfin.ruleset +++ b/jellyfin.ruleset @@ -57,6 +57,10 @@ </Rules> <Rules AnalyzerId="Microsoft.CodeAnalysis.NetAnalyzers" RuleNamespace="Microsoft.Design"> + <!-- error on CA1001: Types that own disposable fields should be disposable --> + <Rule Id="CA1001" Action="Error" /> + <!-- error on CA1012: Abstract types should not have public constructors --> + <Rule Id="CA1012" Action="Error" /> <!-- error on CA1063: Implement IDisposable correctly --> <Rule Id="CA1063" Action="Error" /> <!-- error on CA1305: Specify IFormatProvider --> @@ -80,6 +84,8 @@ <!-- error on CA2016: Forward the CancellationToken parameter to methods that take one or pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token --> <Rule Id="CA2016" Action="Error" /> + <!-- error on CA2215: Dispose methods should call base class dispose --> + <Rule Id="CA2215" Action="Error" /> <!-- error on CA2254: Template should be a static expression --> <Rule Id="CA2254" Action="Error" /> |
