.editorconfig 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [*.cs]
  2. # Sonar rules
  3. # S1854: Unused assignments should be removed
  4. # https://rules.sonarsource.com/csharp/RSPEC-1854
  5. #
  6. # We sometimes increment the value of a variable on each use to make the code future-proof.
  7. #
  8. # For example:
  9. # int idSequence = 0;
  10. # var train1 = new Train { Id = ++idSequence };
  11. # var train2 = new Train { Id = ++idSequence };
  12. #
  13. # The increment of 'idSequence' in the last line will cause this diagnostic to be reported. We prefer to keep the increment to make
  14. # sure the value of the variable will remain correct when we introduce a 'train3'.
  15. #
  16. # For unit tests, we do not care about this diagnostic.
  17. dotnet_diagnostic.S1854.severity = none
  18. #### StyleCop rules ####
  19. # SA1202: Elements must be ordered by access
  20. dotnet_diagnostic.SA1202.severity = none
  21. # SA1600: Elements must be documented
  22. #
  23. # For unit test projects, we do not care about documentation.
  24. dotnet_diagnostic.SA1600.severity = none
  25. # SA1601: Partial elements should be documented
  26. #
  27. # For unit test projects, we do not care about documentation.
  28. dotnet_diagnostic.SA1601.severity = none
  29. # SA1602: Enumeration items must be documented
  30. #
  31. # For unit test projects, we do not care about documentation.
  32. dotnet_diagnostic.SA1602.severity = none
  33. # SA1604: Element documentation should have summary
  34. #
  35. # TODO: Remove this when code has been updated!
  36. dotnet_diagnostic.SA1604.severity = none
  37. # SA1606: Element documentation should have summary text
  38. #
  39. # TODO: Remove this when code has been updated!
  40. dotnet_diagnostic.SA1606.severity = none
  41. # SA1607: Partial element documentation should have summary text
  42. #
  43. # For unit test projects, we do not care about documentation.
  44. dotnet_diagnostic.SA1607.severity = none
  45. # SA1611: Element parameters must be documented
  46. #
  47. # For unit test projects, we do not care about documentation.
  48. dotnet_diagnostic.SA1611.severity = none
  49. # SA1614: Element parameter documentation must have text
  50. #
  51. # TODO: Remove this when code has been updated!
  52. dotnet_diagnostic.SA1614.severity = none
  53. # SA1615: Element return value must be documented
  54. #
  55. # For unit test projects, we do not care about documentation.
  56. dotnet_diagnostic.SA1615.severity = none
  57. # SA1616: Element return value documentation should have text
  58. #
  59. # TODO: Remove this when code has been updated!
  60. dotnet_diagnostic.SA1616.severity = none
  61. # SA1623: Property summary documentation must match accessors
  62. #
  63. # TODO: Remove this when code has been updated!
  64. dotnet_diagnostic.SA1623.severity = none
  65. # SA1629: Documentation text must end with a period
  66. #
  67. # For unit test projects, we do not care about documentation.
  68. dotnet_diagnostic.SA1629.severity = none
  69. #### .NET Compiler Platform analysers rules ####
  70. # CA1001: Types that own disposable fields should be disposable
  71. #
  72. # We do not care about this for unit tests.
  73. dotnet_diagnostic.CA1001.severity = none
  74. # CA1707: Identifiers should not contain underscores
  75. #
  76. # We frequently use underscores in test classes and test methods.
  77. dotnet_diagnostic.CA1707.severity = none
  78. # CA1711: Identifiers should not have incorrect suffix
  79. #
  80. # We frequently define test classes and test method with a suffix that refers to a type.
  81. dotnet_diagnostic.CA1711.severity = none
  82. # CA1720: Identifiers should not contain type names
  83. #
  84. # We do not care about this for unit tests.
  85. dotnet_diagnostic.CA1720.severity = none
  86. # CA5394: Do not use insecure randomness
  87. #
  88. # We do not care about this for unit tests.
  89. dotnet_diagnostic.CA5394.severity = none