您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

129 行
11 KiB

  1. [
  2. *.
  3. {
  4. cs,
  5. vb
  6. }
  7. ] # IDE0130: 命名空间与文件夹结构不匹配 dotnet_style_namespace_match_folder = false end_of_line = crlf dotnet_style_qualification_for_field = false:silent dotnet_style_qualification_for_property = false:silent dotnet_style_qualification_for_method = false:silent dotnet_style_qualification_for_event = false:silent [ *.cs ] #### 命名样式 #### # 命名规则 dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion dotnet_naming_rule.types_should_be_pascal_case.symbols = types dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case # 符号规范 dotnet_naming_symbols.interface.applicable_kinds = interface dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.interface.required_modifiers = dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.types.required_modifiers = dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.non_field_members.required_modifiers = # 命名样式 dotnet_naming_style.begins_with_i.required_prefix = I dotnet_naming_style.begins_with_i.required_suffix = dotnet_naming_style.begins_with_i.word_separator = dotnet_naming_style.begins_with_i.capitalization = pascal_case dotnet_naming_style.pascal_case.required_prefix = dotnet_naming_style.pascal_case.required_suffix = dotnet_naming_style.pascal_case.word_separator = dotnet_naming_style.pascal_case.capitalization = pascal_case dotnet_naming_style.pascal_case.required_prefix = dotnet_naming_style.pascal_case.required_suffix = dotnet_naming_style.pascal_case.word_separator = dotnet_naming_style.pascal_case.capitalization = pascal_case csharp_using_directive_placement = outside_namespace:silent csharp_style_expression_bodied_methods = false:silent csharp_style_expression_bodied_constructors = false:silent csharp_style_expression_bodied_operators = false:silent csharp_style_expression_bodied_properties = true:silent csharp_style_expression_bodied_indexers = true:silent csharp_style_expression_bodied_accessors = true:silent csharp_style_expression_bodied_lambdas = true:silent csharp_style_expression_bodied_local_functions = false:silent csharp_style_conditional_delegate_call = true:suggestion csharp_style_prefer_parameter_null_checking = true:suggestion csharp_style_var_for_built_in_types = false:silent csharp_style_var_when_type_is_apparent = false:silent # MethodDocumentationHeader: The method must have a documentation header. dotnet_diagnostic.MethodDocumentationHeader.severity = none [ *.vb ] #### 命名样式 #### # 命名规则 dotnet_naming_rule.interface_should_be_以_i_开始.severity = suggestion dotnet_naming_rule.interface_should_be_以_i_开始.symbols = interface dotnet_naming_rule.interface_should_be_以_i_开始.style = 以_i_开始 dotnet_naming_rule.类型_should_be_帕斯卡拼写法.severity = suggestion dotnet_naming_rule.类型_should_be_帕斯卡拼写法.symbols = 类型 dotnet_naming_rule.类型_should_be_帕斯卡拼写法.style = 帕斯卡拼写法 dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.severity = suggestion dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.symbols = 非字段成员 dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.style = 帕斯卡拼写法 # 符号规范 dotnet_naming_symbols.interface.applicable_kinds = interface dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected dotnet_naming_symbols.interface.required_modifiers = dotnet_naming_symbols.类型.applicable_kinds = class, struct, interface, enum dotnet_naming_symbols.类型.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected dotnet_naming_symbols.类型.required_modifiers = dotnet_naming_symbols.非字段成员.applicable_kinds = property, event, method dotnet_naming_symbols.非字段成员.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected dotnet_naming_symbols.非字段成员.required_modifiers = # 命名样式 dotnet_naming_style.以_i_开始.required_prefix = I dotnet_naming_style.以_i_开始.required_suffix = dotnet_naming_style.以_i_开始.word_separator = dotnet_naming_style.以_i_开始.capitalization = pascal_case dotnet_naming_style.帕斯卡拼写法.required_prefix = dotnet_naming_style.帕斯卡拼写法.required_suffix = dotnet_naming_style.帕斯卡拼写法.word_separator = dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case dotnet_naming_style.帕斯卡拼写法.required_prefix = dotnet_naming_style.帕斯卡拼写法.required_suffix = dotnet_naming_style.帕斯卡拼写法.word_separator = dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case
  8. [*.{cs,vb}]
  9. end_of_line = crlf
  10. dotnet_style_qualification_for_field = false:silent
  11. dotnet_style_qualification_for_property = false:silent
  12. dotnet_style_qualification_for_method = false:silent
  13. dotnet_style_qualification_for_event = false:silent
  14. [*.cs]
  15. csharp_using_directive_placement = outside_namespace:silent
  16. csharp_style_expression_bodied_methods = false:silent
  17. csharp_style_expression_bodied_constructors = false:silent
  18. csharp_style_expression_bodied_operators = false:silent
  19. csharp_style_expression_bodied_properties = true:silent
  20. csharp_style_expression_bodied_indexers = true:silent
  21. csharp_style_expression_bodied_accessors = true:silent
  22. csharp_style_expression_bodied_lambdas = true:silent
  23. csharp_style_expression_bodied_local_functions = false:silent
  24. csharp_style_conditional_delegate_call = true:suggestion
  25. csharp_style_prefer_parameter_null_checking = true:suggestion
  26. csharp_style_var_for_built_in_types = false:silent
  27. csharp_style_var_when_type_is_apparent = false:silent
  28. [*.cs]
  29. #### 命名样式 ####
  30. # 命名规则
  31. dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
  32. dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
  33. dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
  34. dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
  35. dotnet_naming_rule.types_should_be_pascal_case.symbols = types
  36. dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
  37. dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
  38. dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
  39. dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
  40. # 符号规范
  41. dotnet_naming_symbols.interface.applicable_kinds = interface
  42. dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  43. dotnet_naming_symbols.interface.required_modifiers =
  44. dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
  45. dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  46. dotnet_naming_symbols.types.required_modifiers =
  47. dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
  48. dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
  49. dotnet_naming_symbols.non_field_members.required_modifiers =
  50. # 命名样式
  51. dotnet_naming_style.begins_with_i.required_prefix = I
  52. dotnet_naming_style.begins_with_i.required_suffix =
  53. dotnet_naming_style.begins_with_i.word_separator =
  54. dotnet_naming_style.begins_with_i.capitalization = pascal_case
  55. dotnet_naming_style.pascal_case.required_prefix =
  56. dotnet_naming_style.pascal_case.required_suffix =
  57. dotnet_naming_style.pascal_case.word_separator =
  58. dotnet_naming_style.pascal_case.capitalization = pascal_case
  59. dotnet_naming_style.pascal_case.required_prefix =
  60. dotnet_naming_style.pascal_case.required_suffix =
  61. dotnet_naming_style.pascal_case.word_separator =
  62. dotnet_naming_style.pascal_case.capitalization = pascal_case
  63. # MethodDocumentationHeader: The method must have a documentation header.
  64. dotnet_diagnostic.MethodDocumentationHeader.severity = none
  65. # ConstructorDocumentationHeader: The constructor must have a documentation header.
  66. dotnet_diagnostic.ConstructorDocumentationHeader.severity = none
  67. [*.vb]
  68. #### 命名样式 ####
  69. # 命名规则
  70. dotnet_naming_rule.interface_should_be_以_i_开始.severity = suggestion
  71. dotnet_naming_rule.interface_should_be_以_i_开始.symbols = interface
  72. dotnet_naming_rule.interface_should_be_以_i_开始.style = 以_i_开始
  73. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.severity = suggestion
  74. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.symbols = 类型
  75. dotnet_naming_rule.类型_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
  76. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.severity = suggestion
  77. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.symbols = 非字段成员
  78. dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
  79. # 符号规范
  80. dotnet_naming_symbols.interface.applicable_kinds = interface
  81. dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  82. dotnet_naming_symbols.interface.required_modifiers =
  83. dotnet_naming_symbols.类型.applicable_kinds = class, struct, interface, enum
  84. dotnet_naming_symbols.类型.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  85. dotnet_naming_symbols.类型.required_modifiers =
  86. dotnet_naming_symbols.非字段成员.applicable_kinds = property, event, method
  87. dotnet_naming_symbols.非字段成员.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
  88. dotnet_naming_symbols.非字段成员.required_modifiers =
  89. # 命名样式
  90. dotnet_naming_style.以_i_开始.required_prefix = I
  91. dotnet_naming_style.以_i_开始.required_suffix =
  92. dotnet_naming_style.以_i_开始.word_separator =
  93. dotnet_naming_style.以_i_开始.capitalization = pascal_case
  94. dotnet_naming_style.帕斯卡拼写法.required_prefix =
  95. dotnet_naming_style.帕斯卡拼写法.required_suffix =
  96. dotnet_naming_style.帕斯卡拼写法.word_separator =
  97. dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case
  98. dotnet_naming_style.帕斯卡拼写法.required_prefix =
  99. dotnet_naming_style.帕斯卡拼写法.required_suffix =
  100. dotnet_naming_style.帕斯卡拼写法.word_separator =
  101. dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case