Skip to content

Commit a0a0fd9

Browse files
authored
Merge pull request #6 from EraYaN/move-to-xunit
2 parents 199011e + 4d477e2 commit a0a0fd9

File tree

63 files changed

+1509
-839
lines changed

Some content is hidden

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

63 files changed

+1509
-839
lines changed

.editorconfig

+175-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,183 @@
1+
###############################
2+
# Core EditorConfig Options #
3+
###############################
4+
15
root = true
26

7+
# All files
38
[*]
9+
indent_style = space
410
charset = utf-8
11+
# Unix-style newlines with a newline ending every file
512
end_of_line = lf
6-
tab_width = 4
7-
indent_size = 4
8-
indent_style = space
913
insert_final_newline = true
10-
trim_trailing_whitespace = true
11-
max_line_length = 9999
1214

13-
[*.{yml,yaml}]
14-
tab_width = 2
15+
# Protobuf, XML, YAML and project files
16+
[*.{proto,xml,yaml,yml,csproj}]
1517
indent_size = 2
18+
insert_final_newline = true
19+
20+
# Code files
21+
[*.{cs,csx}]
22+
indent_size = 4
23+
insert_final_newline = true
24+
25+
###############################
26+
# .NET Coding Conventions #
27+
###############################
28+
29+
[*.{cs}]
30+
# Organize usings
31+
dotnet_sort_system_directives_first = true
32+
dotnet_separate_import_directive_groups = false
33+
34+
# this. preferences
35+
dotnet_style_qualification_for_field = false:silent
36+
dotnet_style_qualification_for_property = false:silent
37+
dotnet_style_qualification_for_method = false:silent
38+
dotnet_style_qualification_for_event = false:silent
39+
40+
# Language keywords vs BCL types preferences
41+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
42+
dotnet_style_predefined_type_for_member_access = true:silent
43+
44+
# Parentheses preferences
45+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
46+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
47+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
48+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
49+
50+
# Modifier preferences
51+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
52+
dotnet_style_readonly_field = true:suggestion
53+
54+
# Expression-level preferences
55+
dotnet_style_object_initializer = true:suggestion
56+
dotnet_style_collection_initializer = true:suggestion
57+
dotnet_style_explicit_tuple_names = true:suggestion
58+
dotnet_style_null_propagation = true:suggestion
59+
dotnet_style_coalesce_expression = true:suggestion
60+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
61+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
62+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
63+
dotnet_style_prefer_auto_properties = true:silent
64+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
65+
dotnet_style_prefer_conditional_expression_over_return = true:silent
66+
67+
###############################
68+
# Naming Conventions #
69+
###############################
70+
71+
# Style Definitions
72+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
73+
74+
# Use PascalCase for constant fields
75+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
76+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
77+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
78+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
79+
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
80+
dotnet_naming_symbols.constant_fields.required_modifiers = const
81+
82+
###############################
83+
# C# Code Style Rules #
84+
###############################
85+
86+
[*.cs]
87+
# var preferences
88+
csharp_style_var_for_built_in_types = false:silent
89+
csharp_style_var_when_type_is_apparent = false:silent
90+
csharp_style_var_elsewhere = false:silent
91+
92+
# Expression-bodied members
93+
csharp_style_expression_bodied_methods = false:silent
94+
csharp_style_expression_bodied_constructors = false:silent
95+
csharp_style_expression_bodied_operators = false:silent
96+
csharp_style_expression_bodied_properties = true:silent
97+
csharp_style_expression_bodied_indexers = true:silent
98+
csharp_style_expression_bodied_accessors = true:silent
99+
100+
# Pattern-matching preferences
101+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
102+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
103+
104+
# Null-checking preferences
105+
csharp_style_throw_expression = true:suggestion
106+
csharp_style_conditional_delegate_call = true:suggestion
107+
108+
# Modifier preferences
109+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
110+
111+
# Expression-level preferences
112+
csharp_prefer_braces = true:silent
113+
csharp_style_deconstructed_variable_declaration = true:suggestion
114+
csharp_prefer_simple_default_expression = true:suggestion
115+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
116+
csharp_style_inlined_variable_declaration = true:suggestion
117+
118+
###############################
119+
# C# Formatting Rules #
120+
###############################
121+
122+
# New line preferences
123+
csharp_new_line_before_open_brace = all
124+
csharp_new_line_before_else = true
125+
csharp_new_line_before_catch = true
126+
csharp_new_line_before_finally = true
127+
csharp_new_line_before_members_in_object_initializers = true
128+
csharp_new_line_before_members_in_anonymous_types = true
129+
csharp_new_line_between_query_expression_clauses = true
130+
131+
# Indentation preferences
132+
csharp_indent_case_contents = true
133+
csharp_indent_switch_labels = true
134+
csharp_indent_labels = flush_left
135+
136+
# Space preferences
137+
csharp_space_after_cast = false
138+
csharp_space_after_keywords_in_control_flow_statements = true
139+
csharp_space_between_method_call_parameter_list_parentheses = false
140+
csharp_space_between_method_declaration_parameter_list_parentheses = false
141+
csharp_space_between_parentheses = false
142+
csharp_space_before_colon_in_inheritance_clause = true
143+
csharp_space_after_colon_in_inheritance_clause = true
144+
csharp_space_around_binary_operators = before_and_after
145+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
146+
csharp_space_between_method_call_name_and_opening_parenthesis = false
147+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
148+
csharp_space_after_comma = true
149+
csharp_space_after_dot = false
150+
151+
# Wrapping preferences
152+
csharp_preserve_single_line_statements = true
153+
csharp_preserve_single_line_blocks = true
154+
155+
# CA1305: Specify IFormatProvider
156+
dotnet_diagnostic.CA1305.severity = none
157+
158+
# CA1307: Specify StringComparison
159+
dotnet_diagnostic.CA1307.severity = none
160+
161+
# CA1308: Normalize strings to uppercase
162+
dotnet_diagnostic.CA1308.severity = none
163+
164+
# CA1304: Specify CultureInfo
165+
dotnet_diagnostic.CA1304.severity = none
166+
167+
dotnet_diagnostic.CA1802.severity = none
168+
dotnet_diagnostic.CA1303.severity = none
169+
dotnet_diagnostic.SA1005.severity = none
170+
dotnet_diagnostic.SA1101.severity = none
171+
dotnet_diagnostic.SA1108.severity = none
172+
dotnet_diagnostic.SA1124.severity = none
173+
dotnet_diagnostic.SA1128.severity = none
174+
dotnet_diagnostic.SA1200.severity = none
175+
dotnet_diagnostic.SA1201.severity = none
176+
dotnet_diagnostic.SA1202.severity = none
177+
dotnet_diagnostic.SA1204.severity = none
178+
dotnet_diagnostic.SA1214.severity = none
179+
dotnet_diagnostic.SA1309.severity = none
180+
dotnet_diagnostic.SA1413.severity = none
181+
dotnet_diagnostic.SA1502.severity = none
182+
dotnet_diagnostic.SA1512.severity = none
183+
dotnet_diagnostic.SA1633.severity = none

.github/workflows/build-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
run: dotnet build --nologo --no-restore
3030

3131
- name: Test
32-
run: dotnet test --nologo --no-build --verbosity normal
32+
run: dotnet test --nologo --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings tests/coverletArgs.runsettings

CompatibilityChecker.Library.Tests/CompatibilityChecker.Library.Tests.csproj

-25
This file was deleted.

CompatibilityChecker.Library.Tests/TestAssemblyAnalysis.cs

-47
This file was deleted.

CompatibilityChecker.Library.Tests/TestUtility.cs

-40
This file was deleted.

0 commit comments

Comments
 (0)