.editorconfig 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [*.sln]
  2. indent_style = tab
  3. [*.{csproj,props,targets,nuspec,resx}]
  4. indent_style = space
  5. indent_size = 2
  6. [*.cs]
  7. indent_style = space
  8. indent_size = 4
  9. insert_final_newline = true
  10. trim_trailing_whitespace = true
  11. max_line_length = 120
  12. csharp_indent_case_contents_when_block = false
  13. [*.cs]
  14. # CA1707: Identifiers should not contain underscores
  15. # TODO:
  16. # Maybe we could disable this selectively only
  17. # where it's not desired and for generated code.
  18. dotnet_diagnostic.CA1707.severity = none
  19. # CA1711: Identifiers should not have incorrect suffix
  20. # Disable warning for suffixes like EventHandler, Flags, Enum, etc.
  21. dotnet_diagnostic.CA1711.severity = none
  22. # CA1716: Identifiers should not match keywords
  23. # TODO: We should look into this.
  24. dotnet_diagnostic.CA1716.severity = warning
  25. # CA1720: Identifiers should not contain type names
  26. dotnet_diagnostic.CA1720.severity = none
  27. # CA1805: Do not initialize unnecessarily
  28. # Don't tell me what to do.
  29. dotnet_diagnostic.CA1805.severity = none
  30. # CA1304: Specify CultureInfo
  31. # TODO: We should look into this.
  32. dotnet_diagnostic.CA1304.severity = warning
  33. # CA1305: Specify IFormatProvider
  34. # TODO: We should look into this. Disabled for now because it's annoying.
  35. dotnet_diagnostic.CA1305.severity = none
  36. # CA1310: Specify StringComparison for correctness
  37. # TODO: We should look into this. Disabled for now because it's annoying.
  38. dotnet_diagnostic.CA1310.severity = none
  39. # Diagnostics to prevent defensive copies of `in` struct parameters
  40. resharper_possibly_impure_method_call_on_readonly_variable_highlighting = error