Skip to content

Commit 84392fc

Browse files
committed
Removed outdated initial and add-on migration files.
1 parent 151348a commit 84392fc

265 files changed

Lines changed: 11917 additions & 3859 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 319 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,319 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = space
9+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
10+
spelling_exclusion_path = SpellingExclusions.dic
11+
12+
# Code files
13+
[*.{cs,csx,vb,vbx}]
14+
indent_size = 4
15+
insert_final_newline = true
16+
charset = utf-8-bom
17+
18+
# XML project files
19+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
20+
indent_size = 2
21+
22+
# XML config files
23+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
24+
indent_size = 2
25+
26+
# JSON files
27+
[*.json]
28+
indent_size = 2
29+
30+
# Powershell files
31+
[*.ps1]
32+
indent_size = 2
33+
34+
# Shell script files
35+
[*.sh]
36+
end_of_line = lf
37+
indent_size = 2
38+
39+
# Dotnet code style settings:
40+
[*.{cs,vb}]
41+
42+
# Sort using and Import directives with System.* appearing first
43+
dotnet_sort_system_directives_first = true
44+
dotnet_separate_import_directive_groups = false
45+
# Avoid "this." and "Me." if not necessary
46+
dotnet_style_qualification_for_field = false:refactoring
47+
dotnet_style_qualification_for_property = false:refactoring
48+
dotnet_style_qualification_for_method = false:refactoring
49+
dotnet_style_qualification_for_event = false:refactoring
50+
51+
# Use language keywords instead of framework type names for type references
52+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
53+
dotnet_style_predefined_type_for_member_access = true:suggestion
54+
55+
# Suggest more modern language features when available
56+
dotnet_style_object_initializer = true:suggestion
57+
dotnet_style_collection_initializer = true:suggestion
58+
dotnet_style_coalesce_expression = true:suggestion
59+
dotnet_style_null_propagation = true:suggestion
60+
dotnet_style_explicit_tuple_names = true:suggestion
61+
62+
# Whitespace options
63+
dotnet_style_allow_multiple_blank_lines_experimental = false
64+
65+
# Non-private static fields are PascalCase
66+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
67+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields
68+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style
69+
70+
dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field
71+
dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
72+
dotnet_naming_symbols.non_private_static_fields.required_modifiers = static
73+
74+
dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case
75+
76+
# Non-private readonly fields are PascalCase
77+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.severity = suggestion
78+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.symbols = non_private_readonly_fields
79+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.style = non_private_readonly_field_style
80+
81+
dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field
82+
dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
83+
dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly
84+
85+
dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case
86+
87+
# Constants are PascalCase
88+
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
89+
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
90+
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style
91+
92+
dotnet_naming_symbols.constants.applicable_kinds = field, local
93+
dotnet_naming_symbols.constants.required_modifiers = const
94+
95+
dotnet_naming_style.constant_style.capitalization = pascal_case
96+
97+
# Static fields are camelCase and start with s_
98+
dotnet_naming_rule.static_fields_should_be_camel_case.severity = suggestion
99+
dotnet_naming_rule.static_fields_should_be_camel_case.symbols = static_fields
100+
dotnet_naming_rule.static_fields_should_be_camel_case.style = static_field_style
101+
102+
dotnet_naming_symbols.static_fields.applicable_kinds = field
103+
dotnet_naming_symbols.static_fields.required_modifiers = static
104+
105+
dotnet_naming_style.static_field_style.capitalization = camel_case
106+
dotnet_naming_style.static_field_style.required_prefix = s_
107+
108+
# Instance fields are camelCase and start with _
109+
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
110+
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
111+
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
112+
113+
dotnet_naming_symbols.instance_fields.applicable_kinds = field
114+
115+
dotnet_naming_style.instance_field_style.capitalization = camel_case
116+
dotnet_naming_style.instance_field_style.required_prefix = _
117+
118+
# Locals and parameters are camelCase
119+
dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion
120+
dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters
121+
dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
122+
123+
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local
124+
125+
dotnet_naming_style.camel_case_style.capitalization = camel_case
126+
127+
# Local functions are PascalCase
128+
dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion
129+
dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions
130+
dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style
131+
132+
dotnet_naming_symbols.local_functions.applicable_kinds = local_function
133+
134+
dotnet_naming_style.local_function_style.capitalization = pascal_case
135+
136+
# By default, name items with PascalCase
137+
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
138+
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
139+
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style
140+
141+
dotnet_naming_symbols.all_members.applicable_kinds = *
142+
143+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
144+
145+
file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\nSee the LICENSE file in the project root for more information.
146+
147+
# RS0016: Only enable if API files are present
148+
dotnet_public_api_analyzer.require_api_files = true
149+
150+
# IDE0055: Fix formatting
151+
# Workaround for https://github.com/dotnet/roslyn/issues/70570
152+
dotnet_diagnostic.IDE0055.severity = warning
153+
154+
# https://github.com/dotnet/roslyn-analyzers/issues/7436 - False positives from valid GetDeclaredSymbol calls
155+
dotnet_diagnostic.RS1039.severity = none
156+
157+
# These xUnit analyzers were disabled temporarily to let us move to the
158+
# new xUnit and get past several component governance issues. The
159+
# following issue tracks enabling them
160+
#
161+
# https://github.com/dotnet/roslyn/issues/75093
162+
dotnet_diagnostic.xUnit1012.severity = none
163+
dotnet_diagnostic.xUnit1030.severity = none
164+
dotnet_diagnostic.xUnit1031.severity = none
165+
dotnet_diagnostic.xUnit2005.severity = none
166+
dotnet_diagnostic.xUnit2020.severity = none
167+
dotnet_diagnostic.xUnit2023.severity = none
168+
dotnet_diagnostic.xUnit2029.severity = none
169+
170+
# CSharp code style settings:
171+
[*.cs]
172+
# Newline settings
173+
csharp_new_line_before_open_brace = all
174+
csharp_new_line_before_else = true
175+
csharp_new_line_before_catch = true
176+
csharp_new_line_before_finally = true
177+
csharp_new_line_before_members_in_object_initializers = true
178+
csharp_new_line_before_members_in_anonymous_types = true
179+
csharp_new_line_between_query_expression_clauses = true
180+
181+
# Indentation preferences
182+
csharp_indent_block_contents = true
183+
csharp_indent_braces = false
184+
csharp_indent_case_contents = true
185+
csharp_indent_case_contents_when_block = true
186+
csharp_indent_switch_labels = true
187+
csharp_indent_labels = flush_left
188+
189+
# Whitespace options
190+
csharp_style_allow_embedded_statements_on_same_line_experimental = false
191+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
192+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
193+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false
194+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false
195+
196+
# Prefer "var" everywhere
197+
csharp_style_var_for_built_in_types = true:suggestion
198+
csharp_style_var_when_type_is_apparent = true:suggestion
199+
csharp_style_var_elsewhere = true:suggestion
200+
201+
# Prefer method-like constructs to have a block body
202+
csharp_style_expression_bodied_methods = false:none
203+
csharp_style_expression_bodied_constructors = false:none
204+
csharp_style_expression_bodied_operators = false:none
205+
206+
# Prefer property-like constructs to have an expression-body
207+
csharp_style_expression_bodied_properties = true:none
208+
csharp_style_expression_bodied_indexers = true:none
209+
csharp_style_expression_bodied_accessors = true:none
210+
211+
# Suggest more modern language features when available
212+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
213+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
214+
csharp_style_inlined_variable_declaration = true:suggestion
215+
csharp_style_throw_expression = true:suggestion
216+
csharp_style_conditional_delegate_call = true:suggestion
217+
csharp_style_prefer_extended_property_pattern = true:suggestion
218+
219+
# Space preferences
220+
csharp_space_after_cast = false
221+
csharp_space_after_colon_in_inheritance_clause = true
222+
csharp_space_after_comma = true
223+
csharp_space_after_dot = false
224+
csharp_space_after_keywords_in_control_flow_statements = true
225+
csharp_space_after_semicolon_in_for_statement = true
226+
csharp_space_around_binary_operators = before_and_after
227+
csharp_space_around_declaration_statements = false
228+
csharp_space_before_colon_in_inheritance_clause = true
229+
csharp_space_before_comma = false
230+
csharp_space_before_dot = false
231+
csharp_space_before_open_square_brackets = false
232+
csharp_space_before_semicolon_in_for_statement = false
233+
csharp_space_between_empty_square_brackets = false
234+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
235+
csharp_space_between_method_call_name_and_opening_parenthesis = false
236+
csharp_space_between_method_call_parameter_list_parentheses = false
237+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
238+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
239+
csharp_space_between_method_declaration_parameter_list_parentheses = false
240+
csharp_space_between_parentheses = false
241+
csharp_space_between_square_brackets = false
242+
243+
# Blocks are allowed
244+
csharp_prefer_braces = true:silent
245+
csharp_preserve_single_line_blocks = true
246+
csharp_preserve_single_line_statements = true
247+
248+
# IDE0060: Remove unused parameter
249+
dotnet_diagnostic.IDE0060.severity = warning
250+
251+
[src/{Compilers,ExpressionEvaluator,Scripting}/**Test**/*.{cs,vb}]
252+
253+
# IDE0060: Remove unused parameter
254+
dotnet_diagnostic.IDE0060.severity = none
255+
256+
[src/{Analyzers,CodeStyle,Features,Workspaces,EditorFeatures,VisualStudio}/**/*.{cs,vb}]
257+
258+
# IDE0011: Add braces
259+
csharp_prefer_braces = when_multiline:warning
260+
# NOTE: We need the below severity entry for Add Braces due to https://github.com/dotnet/roslyn/issues/44201
261+
dotnet_diagnostic.IDE0011.severity = warning
262+
263+
# IDE0040: Add accessibility modifiers
264+
dotnet_diagnostic.IDE0040.severity = warning
265+
266+
# IDE0052: Remove unread private member
267+
dotnet_diagnostic.IDE0052.severity = warning
268+
269+
# IDE0059: Unnecessary assignment to a value
270+
dotnet_diagnostic.IDE0059.severity = warning
271+
272+
# CA1012: Abstract types should not have public constructors
273+
dotnet_diagnostic.CA1012.severity = warning
274+
275+
# CA1822: Make member static
276+
dotnet_diagnostic.CA1822.severity = warning
277+
278+
# Prefer "var" everywhere
279+
dotnet_diagnostic.IDE0007.severity = warning
280+
csharp_style_var_for_built_in_types = true:warning
281+
csharp_style_var_when_type_is_apparent = true:warning
282+
csharp_style_var_elsewhere = true:warning
283+
284+
# csharp_style_allow_embedded_statements_on_same_line_experimental
285+
dotnet_diagnostic.IDE2001.severity = warning
286+
287+
# csharp_style_allow_blank_lines_between_consecutive_braces_experimental
288+
dotnet_diagnostic.IDE2002.severity = warning
289+
290+
# csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental
291+
dotnet_diagnostic.IDE2004.severity = warning
292+
293+
# csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental
294+
dotnet_diagnostic.IDE2005.severity = warning
295+
296+
# csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental
297+
dotnet_diagnostic.IDE2006.severity = warning
298+
299+
[src/{VisualStudio}/**/*.{cs,vb}]
300+
# CA1822: Make member static
301+
# There is a risk of accidentally breaking an internal API that partners rely on though IVT.
302+
dotnet_code_quality.CA1822.api_surface = private
303+
304+
[**/{ExternalAccess}/**/*.{cs,vb}]
305+
306+
# RS0016: Only enable if API files are present
307+
dotnet_public_api_analyzer.require_api_files = true
308+
309+
dotnet_diagnostic.RS0051.severity = error
310+
dotnet_diagnostic.RS0052.severity = error
311+
dotnet_diagnostic.RS0053.severity = error
312+
dotnet_diagnostic.RS0054.severity = error
313+
dotnet_diagnostic.RS0055.severity = error
314+
dotnet_diagnostic.RS0056.severity = error
315+
dotnet_diagnostic.RS0057.severity = error
316+
dotnet_diagnostic.RS0058.severity = error
317+
dotnet_diagnostic.RS0059.severity = error
318+
dotnet_diagnostic.RS0060.severity = error
319+
dotnet_diagnostic.RS0061.severity = error

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,4 @@ jobs:
3939
run: dotnet build --no-restore --configuration Release
4040

4141
- name: Test
42-
run: dotnet test
43-
44-
Deploy:
45-
needs: build
46-
if: github.ref == 'refs/heads/main'
47-
runs-on: ubuntu-latest
48-
permissions:
49-
contents: read
50-
packages: write
51-
steps:
52-
- name: Checkout Code
53-
uses: actions/checkout@v2
54-
with:
55-
submodules: recursive # Checkout submodules recursively
56-
57-
- name: Setup .NET
58-
uses: actions/setup-dotnet@v3.2.0
59-
with:
60-
dotnet-version: 9.0
61-
62-
- name: Login to GitHub Container Registry
63-
uses: docker/login-action@v1
64-
with:
65-
registry: ghcr.io
66-
username: ${{ github.repository_owner }}
67-
password: ${{ secrets.GITHUB_TOKEN }}
68-
69-
- name: Build and Push API Container
70-
run: |
71-
dotnet publish ./Template.Api/Template.Api.csproj -c Release --os linux --arch arm64 /t:PublishContainer
72-
73-
- name: Build and Push Web Container
74-
run: |
75-
dotnet publish ./Template.Web/Template.Web.csproj -c Release --os linux --arch arm64 /t:PublishContainer
42+
run: dotnet test

0 commit comments

Comments
 (0)