Skip to content

Commit 34696f4

Browse files
committed
feat: Add LocalPortFiltering.AspNetCore Project
0 parents  commit 34696f4

25 files changed

Lines changed: 1382 additions & 0 deletions

.editorconfig

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
2+
[*.cs]
3+
#### 命名樣式 ####
4+
5+
# 命名規則
6+
7+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
8+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
9+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
10+
11+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
12+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
13+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
14+
15+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
16+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
17+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
18+
19+
# 符號規格
20+
21+
dotnet_naming_symbols.interface.applicable_kinds = interface
22+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
23+
dotnet_naming_symbols.interface.required_modifiers =
24+
25+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
26+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
27+
dotnet_naming_symbols.types.required_modifiers =
28+
29+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
30+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
31+
dotnet_naming_symbols.non_field_members.required_modifiers =
32+
33+
# 命名樣式
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+
40+
dotnet_naming_style.pascal_case.required_prefix =
41+
dotnet_naming_style.pascal_case.required_suffix =
42+
dotnet_naming_style.pascal_case.word_separator =
43+
dotnet_naming_style.pascal_case.capitalization = pascal_case
44+
45+
dotnet_naming_style.pascal_case.required_prefix =
46+
dotnet_naming_style.pascal_case.required_suffix =
47+
dotnet_naming_style.pascal_case.word_separator =
48+
dotnet_naming_style.pascal_case.capitalization = pascal_case
49+
csharp_space_around_binary_operators = before_and_after
50+
csharp_using_directive_placement = outside_namespace:silent
51+
csharp_style_conditional_delegate_call = true:suggestion
52+
csharp_style_var_for_built_in_types = false:silent
53+
csharp_style_var_when_type_is_apparent = false:silent
54+
csharp_style_var_elsewhere = false:silent
55+
csharp_prefer_static_local_function = true:suggestion
56+
csharp_style_prefer_readonly_struct = true:suggestion
57+
csharp_style_prefer_readonly_struct_member = true:suggestion
58+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
59+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
60+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
61+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
62+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
63+
csharp_style_prefer_switch_expression = true:suggestion
64+
csharp_style_prefer_pattern_matching = true:silent
65+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
66+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
67+
csharp_style_prefer_not_pattern = true:suggestion
68+
csharp_style_prefer_extended_property_pattern = true:suggestion
69+
csharp_prefer_braces = true:silent
70+
csharp_prefer_simple_using_statement = true:suggestion
71+
csharp_style_prefer_method_group_conversion = true:silent
72+
csharp_style_namespace_declarations = file_scoped:silent
73+
csharp_style_prefer_top_level_statements = true:silent
74+
csharp_style_prefer_primary_constructors = true:suggestion
75+
csharp_style_expression_bodied_methods = false:silent
76+
csharp_style_expression_bodied_constructors = false:silent
77+
csharp_style_expression_bodied_operators = false:silent
78+
csharp_style_expression_bodied_properties = true:silent
79+
csharp_style_expression_bodied_indexers = true:silent
80+
csharp_style_expression_bodied_accessors = true:silent
81+
csharp_style_expression_bodied_lambdas = true:silent
82+
csharp_style_expression_bodied_local_functions = false:silent
83+
csharp_style_throw_expression = true:suggestion
84+
csharp_style_prefer_null_check_over_type_check = true:suggestion
85+
csharp_prefer_simple_default_expression = true:suggestion
86+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
87+
csharp_style_prefer_index_operator = true:suggestion
88+
csharp_style_prefer_range_operator = true:suggestion
89+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
90+
csharp_style_prefer_tuple_swap = true:suggestion
91+
csharp_style_prefer_utf8_string_literals = true:suggestion
92+
csharp_style_inlined_variable_declaration = true:suggestion
93+
csharp_style_deconstructed_variable_declaration = true:suggestion
94+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
95+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
96+
csharp_indent_labels = one_less_than_current
97+
98+
[*.vb]
99+
#### 命名樣式 ####
100+
101+
# 命名規則
102+
103+
dotnet_naming_rule.interface_should_be_以_i_開頭.severity = suggestion
104+
dotnet_naming_rule.interface_should_be_以_i_開頭.symbols = interface
105+
dotnet_naming_rule.interface_should_be_以_i_開頭.style = 以_i_開頭
106+
107+
dotnet_naming_rule.型別_should_be_pascal_命名法的大小寫.severity = suggestion
108+
dotnet_naming_rule.型別_should_be_pascal_命名法的大小寫.symbols = 型別
109+
dotnet_naming_rule.型別_should_be_pascal_命名法的大小寫.style = pascal_命名法的大小寫
110+
111+
dotnet_naming_rule.非欄位成員_should_be_pascal_命名法的大小寫.severity = suggestion
112+
dotnet_naming_rule.非欄位成員_should_be_pascal_命名法的大小寫.symbols = 非欄位成員
113+
dotnet_naming_rule.非欄位成員_should_be_pascal_命名法的大小寫.style = pascal_命名法的大小寫
114+
115+
# 符號規格
116+
117+
dotnet_naming_symbols.interface.applicable_kinds = interface
118+
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
119+
dotnet_naming_symbols.interface.required_modifiers =
120+
121+
dotnet_naming_symbols.型別.applicable_kinds = class, struct, interface, enum
122+
dotnet_naming_symbols.型別.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
123+
dotnet_naming_symbols.型別.required_modifiers =
124+
125+
dotnet_naming_symbols.非欄位成員.applicable_kinds = property, event, method
126+
dotnet_naming_symbols.非欄位成員.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
127+
dotnet_naming_symbols.非欄位成員.required_modifiers =
128+
129+
# 命名樣式
130+
131+
dotnet_naming_style.以_i_開頭.required_prefix = I
132+
dotnet_naming_style.以_i_開頭.required_suffix =
133+
dotnet_naming_style.以_i_開頭.word_separator =
134+
dotnet_naming_style.以_i_開頭.capitalization = pascal_case
135+
136+
dotnet_naming_style.pascal_命名法的大小寫.required_prefix =
137+
dotnet_naming_style.pascal_命名法的大小寫.required_suffix =
138+
dotnet_naming_style.pascal_命名法的大小寫.word_separator =
139+
dotnet_naming_style.pascal_命名法的大小寫.capitalization = pascal_case
140+
141+
dotnet_naming_style.pascal_命名法的大小寫.required_prefix =
142+
dotnet_naming_style.pascal_命名法的大小寫.required_suffix =
143+
dotnet_naming_style.pascal_命名法的大小寫.word_separator =
144+
dotnet_naming_style.pascal_命名法的大小寫.capitalization = pascal_case
145+
146+
[*.{cs,vb}]
147+
end_of_line = crlf
148+
dotnet_style_qualification_for_field = false:silent
149+
dotnet_style_qualification_for_property = false:silent
150+
dotnet_style_qualification_for_method = false:silent
151+
dotnet_style_qualification_for_event = false:silent
152+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
153+
dotnet_code_quality_unused_parameters = all:suggestion
154+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
155+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
156+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
157+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
158+
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
159+
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
160+
dotnet_style_readonly_field = true:suggestion
161+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
162+
dotnet_style_predefined_type_for_member_access = true:silent
163+
dotnet_style_coalesce_expression = true:suggestion
164+
dotnet_style_null_propagation = true:suggestion
165+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
166+
dotnet_style_prefer_auto_properties = true:silent
167+
dotnet_style_object_initializer = true:suggestion
168+
dotnet_style_collection_initializer = true:suggestion
169+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
170+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
171+
dotnet_style_prefer_conditional_expression_over_return = true:silent
172+
dotnet_style_explicit_tuple_names = true:suggestion
173+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
174+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
175+
dotnet_style_prefer_compound_assignment = true:suggestion
176+
dotnet_style_prefer_simplified_interpolation = true:suggestion
177+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
178+
dotnet_style_namespace_match_folder = true:suggestion
179+
tab_width = 4
180+
indent_size = 4
181+
dotnet_style_operator_placement_when_wrapping = beginning_of_line

.github/workflows/build-debug.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build-Debug
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
build-dotnet:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
18+
- run: dotnet build -c Debug
19+
- run: dotnet test -c Debug

0 commit comments

Comments
 (0)