Analyzers.ruleset 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="14.0">
  3. <!-- https://github.com/dotnet/roslyn/blob/master/docs/compilers/Rule%20Set%20Format.md -->
  4. <IncludeAll Action="Warning" />
  5. <Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage">
  6. <!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. -->
  7. <Rule Id="CA1032" Action="None" />
  8. <!-- Change names to avoid reserved word overlaps (e.g., Delegate, GetType, etc.) - too many of these in the public API, we'd break if we fixed it. -->
  9. <Rule Id="CA1716" Action="None" />
  10. <!-- Implement serialization constructors - false positive when building .NET Core -->
  11. <Rule Id="CA2229" Action="None" />
  12. <!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core -->
  13. <Rule Id="CA2237" Action="None" />
  14. </Rules>
  15. <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
  16. <Rule Id="SA0001" Action="None" />
  17. <Rule Id="SA1008" Action="None" />
  18. <Rule Id="SA1009" Action="None" />
  19. <!-- Prefix local calls with this -->
  20. <Rule Id="SA1101" Action="None" />
  21. <!-- Use built-in type alias -->
  22. <Rule Id="SA1121" Action="None" />
  23. <!-- Use String.Empty instead of "" -->
  24. <Rule Id="SA1122" Action="None" />
  25. <!-- Using statements must be inside a namespace -->
  26. <Rule Id="SA1200" Action="None" />
  27. <!-- Enforce order of class members by member type -->
  28. <Rule Id="SA1201" Action="None" />
  29. <!-- Enforce order of class members by member visibility -->
  30. <Rule Id="SA1202" Action="None" />
  31. <!-- Enforce order of constantand static members -->
  32. <Rule Id="SA1203" Action="None" />
  33. <!-- Enforce order of static vs. non-static members -->
  34. <Rule Id="SA1204" Action="None" />
  35. <!-- Enforce order of readonly vs. non-readonly members -->
  36. <Rule Id="SA1214" Action="None" />
  37. <!-- Fields can't start with underscore -->
  38. <Rule Id="SA1309" Action="None" />
  39. <Rule Id="SA1401" Action="None" />
  40. <Rule Id="SA1402" Action="None" />
  41. <!-- Suppressions must have a justification -->
  42. <Rule Id="SA1404" Action="None" />
  43. <Rule Id="SA1407" Action="None" />
  44. <!-- Use trailing comma in initializers - lots of false positives for enums in StyleCop 1.1.0-beta004 -->
  45. <Rule Id="SA1413" Action="None" />
  46. <!-- No single-line statements involving braces -->
  47. <Rule Id="SA1501" Action="None" />
  48. <!-- Braces must not be omitted -->
  49. <Rule Id="SA1503" Action="None" />
  50. <!-- Element must be documented -->
  51. <Rule Id="SA1600" Action="None" />
  52. <!-- Parameter documentation mus be in the right order -->
  53. <Rule Id="SA1612" Action="None" />
  54. <!-- Return value must be documented -->
  55. <Rule Id="SA1615" Action="None" />
  56. <!-- Generic type parameters must be documented -->
  57. <Rule Id="SA1618" Action="None" />
  58. <Rule Id="SA1623" Action="None" />
  59. <!-- Don't copy/paste documentation -->
  60. <Rule Id="SA1625" Action="None" />
  61. <!-- Exception documentation must not be empty -->
  62. <Rule Id="SA1627" Action="None" />
  63. <!-- File must have header -->
  64. <Rule Id="SA1633" Action="None" />
  65. <Rule Id="SA1649" Action="None" />
  66. <!-- Enable XML documentation output-->
  67. <Rule Id="SA1652" Action="None" />
  68. </Rules>
  69. </RuleSet>