diff --git a/.editorconfig b/.editorconfig index ee3469c6..569ea398 100644 --- a/.editorconfig +++ b/.editorconfig @@ -190,6 +190,14 @@ dotnet_naming_rule.const_field_should_be_pascal_case.severity = suggestion dotnet_naming_rule.const_field_should_be_pascal_case.symbols = const_field dotnet_naming_rule.const_field_should_be_pascal_case.style = pascal_case +dotnet_naming_rule.private_static_field_should_be_pascal_begin_with__.severity = suggestion +dotnet_naming_rule.private_static_field_should_be_pascal_begin_with__.symbols = private_static_field +dotnet_naming_rule.private_static_field_should_be_pascal_begin_with__.style = pascal_begin_with__ + +dotnet_naming_rule.private_static_readonly_field_should_be_pascal_begin_with__.severity = suggestion +dotnet_naming_rule.private_static_readonly_field_should_be_pascal_begin_with__.symbols = private_static_readonly_field +dotnet_naming_rule.private_static_readonly_field_should_be_pascal_begin_with__.style = pascal_begin_with__ + dotnet_naming_rule.private_field_should_be_camel_begin_with__.severity = suggestion dotnet_naming_rule.private_field_should_be_camel_begin_with__.symbols = private_field dotnet_naming_rule.private_field_should_be_camel_begin_with__.style = camel_begin_with__ @@ -198,12 +206,15 @@ dotnet_naming_rule.private_field_should_be_camel_begin_with__.style = camel_begi 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_symbols.const_field.applicable_kinds = field dotnet_naming_symbols.const_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected @@ -211,20 +222,41 @@ dotnet_naming_symbols.const_field.required_modifiers = const dotnet_naming_symbols.visible_field.applicable_kinds = field dotnet_naming_symbols.visible_field.applicable_accessibilities = public, internal, protected_internal +dotnet_naming_symbols.visible_field.required_modifiers = dotnet_naming_symbols.private_field.applicable_kinds = field dotnet_naming_symbols.private_field.applicable_accessibilities = private +dotnet_naming_symbols.private_field.required_modifiers = + +dotnet_naming_symbols.private_static_field.applicable_kinds = field +dotnet_naming_symbols.private_static_field.applicable_accessibilities = private +dotnet_naming_symbols.private_static_field.required_modifiers = static + +dotnet_naming_symbols.private_static_readonly_field.applicable_kinds = field +dotnet_naming_symbols.private_static_readonly_field.applicable_accessibilities = private +dotnet_naming_symbols.private_static_readonly_field.required_modifiers = readonly, static # 命名样式 +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.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.camel_begin_with__.required_prefix = _ +dotnet_naming_style.camel_begin_with__.required_suffix = +dotnet_naming_style.camel_begin_with__.word_separator = dotnet_naming_style.camel_begin_with__.capitalization = camel_case +dotnet_naming_style.pascal_begin_with__.required_prefix = _ +dotnet_naming_style.pascal_begin_with__.required_suffix = +dotnet_naming_style.pascal_begin_with__.word_separator = +dotnet_naming_style.pascal_begin_with__.capitalization = pascal_case # ReSharper properties resharper_max_initializer_elements_on_line = 1 diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 4ff7b3e7..a106a17e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -10,12 +10,16 @@ body: 🚨 **请勿略过说明 / Please do not skip instructions** 🚨 1. 请确保在打开一个新议题之前,查找并确认不要与已有议题重复。 - 2. WPF版本已不再维护,除非重大BUG其他情况下都会直接关闭议题。 + + Please make sure to look for existing issues about the same problem before opening a new one. + + 2. WPF版本已不再维护,除非重大漏洞,其他情况下都会直接关闭议题。 + + The WPF version is no longer maintained and issues are simply closed unless there is a serious bug. + 3. 请尽可能多地提供信息,如果软件崩溃请一并提供崩溃日志。 - 1. Please make sure to look for existing issues about the same problem before opening a new one. - 2. The WPF version is no longer maintained and issues are simply closed unless there is a major bug. - 3. Please provide as much information as possible, and if the software crashes, please provide crash logs as well. + Please provide as much information as possible, and if the software crashes, please provide crash logs as well. - type: dropdown validations: required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 698933a4..83deb7dd 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -10,25 +10,29 @@ body: 🚨 **请勿略过说明 / Please do not skip instructions** 🚨 1. 请确保在打开一个新议题之前,查找并确认不要与已有议题重复。 - 2. WPF版本已不再维护,除非重大BUG其他情况下都会直接关闭议题。 + + Please make sure to look for existing issues about the same problem before opening a new one. + + 2. WPF版本已不再维护,除非重大漏洞,其他情况下都会直接关闭议题。 + + The WPF version is no longer maintained and issues are simply closed unless there is a serious bug. + 3. 只支持Win10,而Win11不支持的功能建议,大概率不会被接受。 - 1. Please make sure to look for existing issues about the same problem before opening a new one. - 2. The WPF version is no longer maintained and issues are simply closed unless there is a major bug. - 3. Feature requests that only support Win10 and not Win11 will most likely not be accepted. + Feature requests that only support Win10 and not Win11 will most likely not be accepted. - type: dropdown validations: required: true attributes: - label: 建议类型 + label: 建议类型 / Type of request options: - - 新功能 - - 功能优化 + - 新功能 / New feature + - 功能优化 / Optimization of feature - type: dropdown validations: required: true attributes: - label: Pixeval的版本 + label: Pixeval的版本 / Pixeval's version options: - WinUI 3 - type: textarea diff --git a/README.en.md b/.github/README.en.md similarity index 99% rename from README.en.md rename to .github/README.en.md index 704242d6..d9e08c17 100644 --- a/README.en.md +++ b/.github/README.en.md @@ -1,6 +1,6 @@