jellyfin.ruleset 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RuleSet Name="Rules for Jellyfin.Server" Description="Code analysis rules for Jellyfin.Server.csproj" ToolsVersion="14.0">
  3. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
  4. <!-- disable warning SA1202: 'public' members must come before 'private' members -->
  5. <Rule Id="SA1202" Action="Info" />
  6. <!-- disable warning SA1204: Static members must appear before non-static members -->
  7. <Rule Id="SA1204" Action="Info" />
  8. <!-- disable warning SA1101: Prefix local calls with 'this.' -->
  9. <Rule Id="SA1101" Action="None" />
  10. <!-- disable warning SA1130: Use lambda syntax -->
  11. <Rule Id="SA1130" Action="None" />
  12. <!-- disable warning SA1200: 'using' directive must appear within a namespace declaration -->
  13. <Rule Id="SA1200" Action="None" />
  14. <!-- disable warning SA1309: Fields must not begin with an underscore -->
  15. <Rule Id="SA1309" Action="None" />
  16. <!-- disable warning SA1413: Use trailing comma in multi-line initializers -->
  17. <Rule Id="SA1413" Action="None" />
  18. <!-- disable warning SA1512: Single-line comments must not be followed by blank line -->
  19. <Rule Id="SA1512" Action="None" />
  20. <!-- disable warning SA1633: The file header is missing or not located at the top of the file -->
  21. <Rule Id="SA1633" Action="None" />
  22. </Rules>
  23. <Rules AnalyzerId="Microsoft.CodeAnalysis.FxCopAnalyzers" RuleNamespace="Microsoft.Design">
  24. <!-- disable warning CA1031: Do not catch general exception types -->
  25. <Rule Id="CA1031" Action="Info" />
  26. <!-- disable warning CA1062: Validate arguments of public methods -->
  27. <Rule Id="CA1062" Action="Info" />
  28. <!-- disable warning CA1812: internal class that is apparently never instantiated.
  29. If so, remove the code from the assembly.
  30. If this class is intended to contain only static members, make it static -->
  31. <Rule Id="CA1812" Action="Info" />
  32. <!-- disable warning CA1822: Member does not access instance data and can be marked as static -->
  33. <Rule Id="CA1822" Action="Info" />
  34. <!-- disable warning CA1054: Change the type of parameter url from string to System.Uri -->
  35. <Rule Id="CA1054" Action="None" />
  36. <!-- disable warning CA1303: Do not pass literals as localized parameters -->
  37. <Rule Id="CA1303" Action="None" />
  38. <!-- disable warning CA2000: Dispose objects before losing scope -->
  39. <Rule Id="CA2000" Action="None" />
  40. </Rules>
  41. </RuleSet>