mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
b44a70ff36
* Remove useless runtime check (we only support one) * Remove unused args * Remove a global constant And ofc fix some warnings ;)
30 lines
1.6 KiB
XML
30 lines
1.6 KiB
XML
<?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">
|
|
<!-- disable warning SA1202: 'public' members must come before 'private' members -->
|
|
<Rule Id="SA1202" Action="Info" />
|
|
<!-- disable warning SA1204: Static members must appear before non-static members -->
|
|
<Rule Id="SA1204" Action="Info" />
|
|
|
|
<!-- disable warning SA1101: Prefix local calls with 'this.' -->
|
|
<Rule Id="SA1101" Action="None" />
|
|
<!-- disable warning SA1130: Use lambda syntax -->
|
|
<Rule Id="SA1130" Action="None" />
|
|
<!-- disable warning SA1200: 'using' directive must appear within a namespace declaration -->
|
|
<Rule Id="SA1200" Action="None" />
|
|
<!-- disable warning SA1309: Fields must not begin with an underscore -->
|
|
<Rule Id="SA1309" 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 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" />
|
|
</Rules>
|
|
</RuleSet>
|