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 7adc35087..e9293588c 100644
--- a/jellyfin.ruleset
+++ b/jellyfin.ruleset
@@ -1,6 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Rules for Jellyfin.Server" Description="Code analysis rules for Jellyfin.Server.csproj" ToolsVersion="14.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
+ <!-- error on SA1000: The keyword 'new' should be followed by a space -->
+ <Rule Id="SA1000" Action="Error" />
+ <!-- error on SA1001: Commas should not be preceded by whitespace -->
+ <Rule Id="SA1001" Action="Error" />
+ <!-- error on SA1117: The parameters should all be placed on the same line or each parameter should be placed on its own line -->
+ <Rule Id="SA1117" Action="Error" />
+ <!-- error on SA1142: Refer to tuple fields by name -->
+ <Rule Id="SA1142" Action="Error" />
+ <!-- error on SA1210: Using directives should be ordered alphabetically by the namespaces -->
+ <Rule Id="SA1210" Action="Error" />
+ <!-- error on SA1518: File is required to end with a single newline character -->
+ <Rule Id="SA1518" Action="Error" />
+ <!-- error on SA1629: Documentation text should end with a period -->
+ <Rule Id="SA1629" Action="Error" />
+
<!-- disable warning SA1009: Closing parenthesis should be followed by a space. -->
<Rule Id="SA1009" Action="None" />
<!-- disable warning SA1011: Closing square bracket should be followed by a space. -->