Skip to content

Commit 6f3988b

Browse files
committed
Squash history before release
0 parents  commit 6f3988b

File tree

220 files changed

+15953
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+15953
-0
lines changed

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"meziantou.framework.nugetpackagevalidation.tool": {
6+
"version": "1.0.33",
7+
"commands": [
8+
"meziantou.validate-nuget-package"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.editorconfig

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Default settings:
5+
# A newline ending every file
6+
# Use 4 spaces as indentation
7+
[*]
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4
11+
trim_trailing_whitespace = true
12+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
13+
tab_width = 4
14+
end_of_line = crlf
15+
dotnet_style_coalesce_expression = true:suggestion
16+
dotnet_style_null_propagation = true:suggestion
17+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
18+
dotnet_style_prefer_auto_properties = true:suggestion
19+
dotnet_style_object_initializer = true:suggestion
20+
dotnet_style_collection_initializer = true:suggestion
21+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
22+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
23+
dotnet_style_prefer_conditional_expression_over_return = true:silent
24+
dotnet_style_explicit_tuple_names = true:suggestion
25+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
26+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
27+
dotnet_style_prefer_compound_assignment = true:suggestion
28+
dotnet_style_prefer_simplified_interpolation = true:suggestion
29+
dotnet_style_prefer_collection_expression = never:suggestion
30+
dotnet_style_namespace_match_folder = true:suggestion
31+
dotnet_style_readonly_field = true:suggestion
32+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
33+
dotnet_style_predefined_type_for_member_access = true:suggestion
34+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
35+
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
36+
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
37+
dotnet_code_quality_unused_parameters = all:suggestion
38+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
39+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
40+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
41+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
42+
dotnet_style_qualification_for_field = false:suggestion
43+
dotnet_style_qualification_for_property = false:suggestion
44+
dotnet_style_qualification_for_method = false:suggestion
45+
dotnet_style_qualification_for_event = false:suggestion
46+
47+
[project.json]
48+
indent_size = 2
49+
50+
# Generated code
51+
[*{_AssemblyInfo.cs,.notsupported.cs}]
52+
generated_code = true
53+
54+
# C# files
55+
[*.cs]
56+
# New line preferences
57+
csharp_new_line_before_open_brace = all
58+
csharp_new_line_before_else = true
59+
csharp_new_line_before_catch = true
60+
csharp_new_line_before_finally = true
61+
csharp_new_line_before_members_in_object_initializers = true
62+
csharp_new_line_before_members_in_anonymous_types = true
63+
csharp_new_line_between_query_expression_clauses = true
64+
65+
# Indentation preferences
66+
csharp_indent_block_contents = true
67+
csharp_indent_braces = false
68+
csharp_indent_case_contents = true
69+
csharp_indent_case_contents_when_block = true
70+
csharp_indent_switch_labels = true
71+
csharp_indent_labels = one_less_than_current
72+
73+
# Modifier preferences
74+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
75+
76+
# avoid this. unless absolutely necessary
77+
dotnet_style_qualification_for_field = false:suggestion
78+
dotnet_style_qualification_for_property = false:suggestion
79+
dotnet_style_qualification_for_method = false:suggestion
80+
dotnet_style_qualification_for_event = false:suggestion
81+
82+
# Types: use keywords instead of BCL types, and permit var only when the type is clear
83+
csharp_style_var_for_built_in_types = true:suggestion
84+
csharp_style_var_when_type_is_apparent = true:none
85+
csharp_style_var_elsewhere = true:suggestion
86+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
87+
dotnet_style_predefined_type_for_member_access = true:suggestion
88+
89+
# name all constant fields using PascalCase
90+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
91+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
92+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
93+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
94+
dotnet_naming_symbols.constant_fields.required_modifiers = const
95+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
96+
97+
# static fields should have s_ prefix
98+
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
99+
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
100+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
101+
dotnet_naming_symbols.static_fields.applicable_kinds = field
102+
dotnet_naming_symbols.static_fields.required_modifiers = static
103+
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
104+
dotnet_naming_style.static_prefix_style.required_prefix = s_
105+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
106+
107+
# internal and private fields should be _camelCase
108+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
109+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
110+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
111+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
112+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
113+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
114+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
115+
116+
# Code style defaults
117+
csharp_using_directive_placement = outside_namespace:suggestion
118+
dotnet_sort_system_directives_first = true
119+
csharp_prefer_braces = true:silent
120+
csharp_preserve_single_line_blocks = true:none
121+
csharp_preserve_single_line_statements = false:none
122+
csharp_prefer_static_local_function = true:suggestion
123+
csharp_prefer_simple_using_statement = false:none
124+
csharp_style_prefer_switch_expression = true:suggestion
125+
dotnet_style_readonly_field = true:suggestion
126+
127+
# Expression-level preferences
128+
dotnet_style_object_initializer = true:suggestion
129+
dotnet_style_collection_initializer = true:suggestion
130+
dotnet_style_explicit_tuple_names = true:suggestion
131+
dotnet_style_coalesce_expression = true:suggestion
132+
dotnet_style_null_propagation = true:suggestion
133+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
134+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
135+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
136+
dotnet_style_prefer_auto_properties = true:suggestion
137+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
138+
dotnet_style_prefer_conditional_expression_over_return = true:silent
139+
csharp_prefer_simple_default_expression = true:suggestion
140+
141+
# Expression-bodied members
142+
csharp_style_expression_bodied_methods = true:silent
143+
csharp_style_expression_bodied_constructors = true:silent
144+
csharp_style_expression_bodied_operators = true:silent
145+
csharp_style_expression_bodied_properties = true:silent
146+
csharp_style_expression_bodied_indexers = true:silent
147+
csharp_style_expression_bodied_accessors = true:silent
148+
csharp_style_expression_bodied_lambdas = true:silent
149+
csharp_style_expression_bodied_local_functions = true:silent
150+
151+
# Pattern matching
152+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
153+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
154+
csharp_style_inlined_variable_declaration = true:suggestion
155+
156+
# Null checking preferences
157+
csharp_style_throw_expression = true:suggestion
158+
csharp_style_conditional_delegate_call = true:suggestion
159+
160+
# Other features
161+
csharp_style_prefer_index_operator = false:none
162+
csharp_style_prefer_range_operator = false:none
163+
csharp_style_pattern_local_over_anonymous_function = false:none
164+
165+
# Space preferences
166+
csharp_space_after_cast = false
167+
csharp_space_after_colon_in_inheritance_clause = true
168+
csharp_space_after_comma = true
169+
csharp_space_after_dot = false
170+
csharp_space_after_keywords_in_control_flow_statements = true
171+
csharp_space_after_semicolon_in_for_statement = true
172+
csharp_space_around_binary_operators = before_and_after
173+
csharp_space_around_declaration_statements = do_not_ignore
174+
csharp_space_before_colon_in_inheritance_clause = true
175+
csharp_space_before_comma = false
176+
csharp_space_before_dot = false
177+
csharp_space_before_open_square_brackets = false
178+
csharp_space_before_semicolon_in_for_statement = false
179+
csharp_space_between_empty_square_brackets = false
180+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
181+
csharp_space_between_method_call_name_and_opening_parenthesis = false
182+
csharp_space_between_method_call_parameter_list_parentheses = false
183+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
184+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
185+
csharp_space_between_method_declaration_parameter_list_parentheses = false
186+
csharp_space_between_parentheses = false
187+
csharp_space_between_square_brackets = false
188+
csharp_style_namespace_declarations = file_scoped:warning
189+
csharp_style_prefer_method_group_conversion = true:silent
190+
csharp_style_prefer_top_level_statements = true:silent
191+
csharp_style_prefer_primary_constructors = false:suggestion
192+
csharp_prefer_system_threading_lock = true:suggestion
193+
csharp_style_prefer_null_check_over_type_check = true:suggestion
194+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
195+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
196+
csharp_style_prefer_implicitly_typed_lambda_expression = true:suggestion
197+
csharp_style_prefer_tuple_swap = true:suggestion
198+
csharp_style_prefer_unbound_generic_type_in_nameof = true:suggestion
199+
csharp_style_prefer_utf8_string_literals = true:suggestion
200+
csharp_style_deconstructed_variable_declaration = true:suggestion
201+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
202+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
203+
csharp_prefer_static_anonymous_function = true:suggestion
204+
csharp_style_prefer_readonly_struct = true:suggestion
205+
csharp_style_prefer_readonly_struct_member = true:suggestion
206+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
207+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
208+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
209+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
210+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
211+
csharp_style_prefer_pattern_matching = true:silent
212+
csharp_style_prefer_not_pattern = true:suggestion
213+
csharp_style_prefer_extended_property_pattern = true:suggestion
214+
215+
dotnet_diagnostic.MA0002.severity = none
216+
dotnet_diagnostic.MA0004.severity = none
217+
dotnet_diagnostic.MA0006.severity = none
218+
dotnet_diagnostic.MA0016.severity = none
219+
dotnet_diagnostic.MA0074.severity = none
220+
MA0051.skip_local_functions = true
221+
222+
# Xml project files
223+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
224+
indent_size = 2
225+
226+
[*.{csproj,vbproj,proj,nativeproj,locproj}]
227+
charset = utf-8
228+
229+
# Xml build files
230+
[*.builds]
231+
indent_size = 2
232+
233+
# Xml files
234+
[*.{xml,stylecop,resx,ruleset}]
235+
indent_size = 2
236+
237+
# Xml config files
238+
[*.{props,targets,config,nuspec}]
239+
indent_size = 2
240+
241+
# YAML config files
242+
[*.{yml,yaml}]
243+
indent_size = 2
244+
245+
# Shell scripts
246+
[*.sh]
247+
end_of_line = lf
248+
[*.{cmd,bat}]
249+
end_of_line = crlf
250+
251+
# Verify settings
252+
[*.{received,verified}.{json,txt,xml}]
253+
charset = utf-8-bom
254+
end_of_line = lf
255+
indent_size = unset
256+
indent_style = unset
257+
insert_final_newline = false
258+
tab_width = unset
259+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Set default behaviour to automatically normalize line endings.
2+
* text=auto encoding=UTF-8
3+
4+
*.{cmd,[cC][mM][dD]} text eol=crlf
5+
*.{bat,[bB][aA][tT]} text eol=crlf
6+
*.sh text eol=lf
7+
*.verified.txt text eol=lf working-tree-encoding=UTF-8
8+
*.verified.xml text eol=lf working-tree-encoding=UTF-8
9+
*.verified.json text eol=lf working-tree-encoding=UTF-8
10+
*.verified.bin binary
11+
*.png binary
12+
*.jpg binary
13+
*.cs text eol=crlf

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- '*'
8+
paths:
9+
- "src/**"
10+
- "test/**"
11+
- "samples/**"
12+
pull_request:
13+
branches:
14+
- '*'
15+
paths:
16+
- "src/**"
17+
- "test/**"
18+
- "samples/**"
19+
20+
env:
21+
DOTNET_NOLOGO: true
22+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
23+
DOTNET_CLI_TELEMETRY_OPTOUT: true
24+
25+
defaults:
26+
run:
27+
shell: pwsh
28+
29+
jobs:
30+
build-lint-and-test:
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- uses: actions/checkout@v5
35+
- uses: actions/setup-dotnet@v5
36+
with:
37+
dotnet-version: 8.x
38+
- run: ./lint-test-and-nuget-test.ps1 -Env "ci"
39+
- uses: dorny/test-reporter@v2
40+
if: ${{ !cancelled() }}
41+
with:
42+
name: '.NET tests'
43+
path: 'test/**/TestResults/**/*.trx'
44+
reporter: 'dotnet-trx'

0 commit comments

Comments
 (0)