aboutsummaryrefslogtreecommitdiff
path: root/jellyfin.ruleset
diff options
context:
space:
mode:
Diffstat (limited to 'jellyfin.ruleset')
-rw-r--r--jellyfin.ruleset15
1 files changed, 15 insertions, 0 deletions
diff --git a/jellyfin.ruleset b/jellyfin.ruleset
index 262121a32..8ea1d6b16 100644
--- a/jellyfin.ruleset
+++ b/jellyfin.ruleset
@@ -14,16 +14,31 @@
<Rule Id="SA1200" Action="None" />
<!-- disable warning SA1309: Fields must not begin with an underscore -->
<Rule Id="SA1309" Action="None" />
+ <!-- disable warning SA1413: Use trailing comma in multi-line initializers -->
+ <Rule Id="SA1413" Action="None" />
<!-- disable warning SA1512: Single-line comments must not be followed by blank line -->
<Rule Id="SA1512" Action="None" />
<!-- disable warning SA1633: The file header is missing or not located at the top of the file -->
<Rule Id="SA1633" Action="None" />
</Rules>
+
<Rules AnalyzerId="Microsoft.CodeAnalysis.FxCopAnalyzers" RuleNamespace="Microsoft.Design">
+ <!-- disable warning CA1031: Do not catch general exception types -->
+ <Rule Id="CA1031" Action="Info" />
+ <!-- disable warning CA1062: Validate arguments of public methods -->
+ <Rule Id="CA1062" Action="Info" />
+ <!-- disable warning CA1812: internal class that is apparently never instantiated.
+ If so, remove the code from the assembly.
+ If this class is intended to contain only static members, make it static -->
+ <Rule Id="CA1812" Action="Info" />
<!-- disable warning CA1822: Member does not access instance data and can be marked as static -->
<Rule Id="CA1822" Action="Info" />
<!-- disable warning CA1054: Change the type of parameter url from string to System.Uri -->
<Rule Id="CA1054" Action="None" />
+ <!-- disable warning CA1303: Do not pass literals as localized parameters -->
+ <Rule Id="CA1303" Action="None" />
+ <!-- disable warning CA2000: Dispose objects before losing scope -->
+ <Rule Id="CA2000" Action="None" />
</Rules>
</RuleSet>