终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

.editorconfig 6.1 KiB

pirms 2 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. [*.cs]
  2. # CS8600: 将 null 字面量或可能为 null 的值转换为非 null 类型。
  3. dotnet_diagnostic.CS8600.severity = none
  4. # CS8604: 引用类型参数可能为 null。
  5. dotnet_diagnostic.CS8604.severity = none
  6. # CS8603: 可能返回 null 引用。
  7. dotnet_diagnostic.CS8603.severity = none
  8. # Default severity for all analyzer diagnostics
  9. dotnet_analyzer_diagnostic.severity = none
  10. # CS8602: 解引用可能出现空引用。
  11. dotnet_diagnostic.CS8602.severity = none
  12. [*.cs]
  13. #### 命名样式 ####
  14. # 命名规则
  15. dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
  16. dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
  17. dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
  18. dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
  19. dotnet_naming_rule.types_should_be_pascal_case.symbols = types
  20. dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
  21. dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
  22. dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
  23. dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
  24. # 符号规范
  25. dotnet_naming_symbols.interface.applicable_kinds = interface
  26. dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  27. dotnet_naming_symbols.interface.required_modifiers =
  28. dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
  29. dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  30. dotnet_naming_symbols.types.required_modifiers =
  31. dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
  32. dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  33. dotnet_naming_symbols.non_field_members.required_modifiers =
  34. # 命名样式
  35. dotnet_naming_style.begins_with_i.required_prefix = I
  36. dotnet_naming_style.begins_with_i.required_suffix =
  37. dotnet_naming_style.begins_with_i.word_separator =
  38. dotnet_naming_style.begins_with_i.capitalization = pascal_case
  39. dotnet_naming_style.pascal_case.required_prefix =
  40. dotnet_naming_style.pascal_case.required_suffix =
  41. dotnet_naming_style.pascal_case.word_separator =
  42. dotnet_naming_style.pascal_case.capitalization = pascal_case
  43. dotnet_naming_style.pascal_case.required_prefix =
  44. dotnet_naming_style.pascal_case.required_suffix =
  45. dotnet_naming_style.pascal_case.word_separator =
  46. dotnet_naming_style.pascal_case.capitalization = pascal_case
  47. csharp_using_directive_placement = outside_namespace:silent
  48. csharp_style_expression_bodied_methods = false:silent
  49. csharp_style_expression_bodied_constructors = false:silent
  50. csharp_style_expression_bodied_operators = false:silent
  51. csharp_style_expression_bodied_properties = true:silent
  52. csharp_style_expression_bodied_indexers = true:silent
  53. csharp_style_expression_bodied_accessors = true:silent
  54. csharp_style_expression_bodied_lambdas = true:silent
  55. csharp_style_expression_bodied_local_functions = false:silent
  56. csharp_style_conditional_delegate_call = true:suggestion
  57. csharp_style_var_for_built_in_types = false:silent
  58. csharp_style_var_when_type_is_apparent = false:silent
  59. csharp_style_var_elsewhere = false:silent
  60. csharp_prefer_simple_using_statement = true:suggestion
  61. csharp_prefer_braces = true:silent
  62. csharp_style_namespace_declarations = block_scoped:silent
  63. csharp_prefer_static_local_function = true:suggestion
  64. [*.vb]
  65. #### 命名样式 ####
  66. # 命名规则
  67. dotnet_naming_rule.interface_should_be_以_i_开始.severity = suggestion
  68. dotnet_naming_rule.interface_should_be_以_i_开始.symbols = interface
  69. dotnet_naming_rule.interface_should_be_以_i_开始.style = 以_i_开始
  70. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.severity = suggestion
  71. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.symbols = 类型
  72. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
  73. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.severity = suggestion
  74. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.symbols = 非字段成员
  75. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
  76. # 符号规范
  77. dotnet_naming_symbols.interface.applicable_kinds = interface
  78. dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  79. dotnet_naming_symbols.interface.required_modifiers =
  80. dotnet_naming_symbols.类型.applicable_kinds = class, struct, interface, enum
  81. dotnet_naming_symbols.类型.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  82. dotnet_naming_symbols.类型.required_modifiers =
  83. dotnet_naming_symbols.非字段成员.applicable_kinds = property, event, method
  84. dotnet_naming_symbols.非字段成员.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  85. dotnet_naming_symbols.非字段成员.required_modifiers =
  86. # 命名样式
  87. dotnet_naming_style.以_i_开始.required_prefix = I
  88. dotnet_naming_style.以_i_开始.required_suffix =
  89. dotnet_naming_style.以_i_开始.word_separator =
  90. dotnet_naming_style.以_i_开始.capitalization = pascal_case
  91. dotnet_naming_style.帕斯卡拼写法.required_prefix =
  92. dotnet_naming_style.帕斯卡拼写法.required_suffix =
  93. dotnet_naming_style.帕斯卡拼写法.word_separator =
  94. dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case
  95. dotnet_naming_style.帕斯卡拼写法.required_prefix =
  96. dotnet_naming_style.帕斯卡拼写法.required_suffix =
  97. dotnet_naming_style.帕斯卡拼写法.word_separator =
  98. dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case
  99. [*.{cs,vb}]
  100. end_of_line = crlf
  101. dotnet_style_qualification_for_field = false:silent
  102. dotnet_style_qualification_for_property = false:silent
  103. dotnet_style_qualification_for_method = false:silent
  104. dotnet_style_qualification_for_event = false:silent
  105. dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
  106. dotnet_code_quality_unused_parameters = all:suggestion