Skip to content

Commit a9c8ba9

Browse files
The beginning of Project Asp. 'master' is now 'main'.
0 parents  commit a9c8ba9

File tree

1,211 files changed

+83369
-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.

1,211 files changed

+83369
-0
lines changed

Diff for: .editorconfig

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
2+
3+
# top-most .editorconfig file
4+
root = true
5+
6+
# don't use tabs for indentation
7+
[*]
8+
indent_style = space
9+
10+
# code files
11+
[*.{cs,csx,vb,vbx}]
12+
indent_size = 4
13+
14+
# xml project files
15+
[*.{csproj,vbproj,proj,projitems,shproj,msbuildproj}]
16+
indent_size = 1
17+
18+
# xml config files
19+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
20+
indent_size = 1
21+
22+
# json files
23+
[*.json]
24+
indent_size = 2
25+
26+
# whitespace handling
27+
trim_trailing_whitespace = true:error
28+
insert_final_newline = false
29+
30+
# .net code style settings:
31+
[*.{cs,vb}]
32+
dotnet_sort_system_directives_first = false
33+
34+
# avoid "this." and "me." if not necessary
35+
dotnet_style_qualification_for_field = false:error
36+
dotnet_style_qualification_for_property = false:error
37+
dotnet_style_qualification_for_method = false:error
38+
dotnet_style_qualification_for_event = false:error
39+
40+
# use language keywords instead of framework type names for type references
41+
dotnet_style_predefined_type_for_locals_parameters_members = true:error
42+
dotnet_style_predefined_type_for_member_access = true:error
43+
44+
# suggest more modern language features when available
45+
dotnet_style_object_initializer = true:suggestion
46+
dotnet_style_collection_initializer = true:suggestion
47+
dotnet_style_coalesce_expression = true:suggestion
48+
dotnet_style_null_propagation = true:suggestion
49+
dotnet_style_explicit_tuple_names = true:suggestion
50+
51+
# csharp code style settings:
52+
[*.cs]
53+
54+
# prefer "var" everywhere
55+
csharp_style_var_for_built_in_types = true:suggestion
56+
csharp_style_var_when_type_is_apparent = true:suggestion
57+
csharp_style_var_elsewhere = true:suggestion
58+
59+
# prefer method-like constructs to have a block body
60+
csharp_style_expression_bodied_methods = false:none
61+
csharp_style_expression_bodied_constructors = false:none
62+
csharp_style_expression_bodied_operators = false:none
63+
64+
# prefer property-like constructs to have an expression-body
65+
csharp_style_expression_bodied_properties = true:none
66+
csharp_style_expression_bodied_indexers = true:none
67+
csharp_style_expression_bodied_accessors = true:none
68+
69+
# suggest more modern language features when available
70+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
71+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
72+
csharp_style_inlined_variable_declaration = true:suggestion
73+
csharp_style_throw_expression = true:suggestion
74+
csharp_style_conditional_delegate_call = true:suggestion
75+
76+
# newline settings
77+
csharp_new_line_before_open_brace = all
78+
csharp_new_line_before_else = true
79+
csharp_new_line_before_catch = true
80+
csharp_new_line_before_finally = true
81+
csharp_new_line_before_members_in_object_initializers = false
82+
csharp_new_line_before_members_in_anonymous_types = false
83+
84+
# space settings
85+
csharp_space_after_cast = true
86+
csharp_space_after_keywords_in_control_flow_statements = true
87+
csharp_space_between_method_declaration_parameter_list_parentheses = true
88+
csharp_space_between_method_call_parameter_list_parentheses = true
89+
csharp_space_between_parentheses = control_flow_statements, expressions
90+
91+
# ide code suppressions
92+
# dotnet_diagnostic.IDE0079.severity = none
93+
94+
# style code suppressions
95+
dotnet_diagnostic.SA1002.severity = none
96+
dotnet_diagnostic.SA1003.severity = none
97+
dotnet_diagnostic.SA1008.severity = none
98+
dotnet_diagnostic.SA1009.severity = none
99+
dotnet_diagnostic.SA1101.severity = none
100+
dotnet_diagnostic.SA1127.severity = none
101+
dotnet_diagnostic.SA1128.severity = none
102+
dotnet_diagnostic.SA1201.severity = none
103+
dotnet_diagnostic.SA1202.severity = none
104+
dotnet_diagnostic.SA1204.severity = none
105+
dotnet_diagnostic.SA1205.severity = none
106+
dotnet_diagnostic.SA1208.severity = none
107+
dotnet_diagnostic.SA1217.severity = none
108+
dotnet_diagnostic.SA1311.severity = none
109+
dotnet_diagnostic.SA1502.severity = none
110+
dotnet_diagnostic.SA1516.severity = none
111+
dotnet_diagnostic.SA1600.severity = none
112+
113+
# test settings
114+
115+
# Default severity for analyzer diagnostics with category 'Reliability'
116+
dotnet_analyzer_diagnostic.category-Reliability.severity = error
117+
118+
[*{Controller,Test,Fixture,TestCollection}.cs]
119+
120+
# code analysis suppressions
121+
dotnet_diagnostic.CS0618.severity = none
122+
dotnet_diagnostic.CA1014.severity = none
123+
dotnet_diagnostic.CA1054.severity = none
124+
dotnet_diagnostic.CA1062.severity = none
125+
dotnet_diagnostic.CA1305.severity = none
126+
dotnet_diagnostic.CA1307.severity = none
127+
dotnet_diagnostic.CA1707.severity = none
128+
dotnet_diagnostic.CA1711.severity = none
129+
dotnet_diagnostic.CA1716.severity = none
130+
dotnet_diagnostic.CA1806.severity = none
131+
dotnet_diagnostic.CA2007.severity = none
132+
dotnet_diagnostic.CA2234.severity = none
133+
dotnet_code_quality.CA2000.excluded_symbol_names = HttpRequestMessage|HttpResponseMessage|HttpConfiguration|HttpRouteCollection|HostedHttpRouteCollection|HttpServer|HttpClient
134+
135+
# style code suppressions
136+
dotnet_diagnostic.SA1122.severity = none
137+
dotnet_diagnostic.SA1300.severity = none
138+
dotnet_diagnostic.SA1507.severity = none
139+
dotnet_diagnostic.SA1601.severity = none
140+
141+
# test methods should use all lowercase characters
142+
dotnet_naming_symbols.test_methods.applicable_kinds = method
143+
dotnet_naming_symbols.test_methods.applicable_accessibilities = public
144+
145+
dotnet_naming_style.test_methods.capitalization = all_lower
146+
dotnet_naming_style.test_methods.word_separator = _
147+
148+
dotnet_naming_rule.test_methods.style = test_methods
149+
dotnet_naming_rule.test_methods.symbols = test_methods
150+
dotnet_naming_rule.test_methods.severity = none
151+
152+
# test methods using Given-When-Then (GWT) form should use all lowercase characters
153+
# note: glob expansion syntax cannot be used because the patterns do not overlap
154+
[when*.cs]
155+
156+
# code analysis suppressions
157+
dotnet_diagnostic.CA1014.severity = none
158+
dotnet_diagnostic.CA1054.severity = none
159+
dotnet_diagnostic.CA1062.severity = none
160+
dotnet_diagnostic.CA1305.severity = none
161+
dotnet_diagnostic.CA1307.severity = none
162+
dotnet_diagnostic.CA1707.severity = none
163+
dotnet_diagnostic.CA1711.severity = none
164+
dotnet_diagnostic.CA1806.severity = none
165+
dotnet_diagnostic.CA2007.severity = none
166+
dotnet_diagnostic.CA2234.severity = none
167+
168+
# style code suppressions
169+
dotnet_diagnostic.SA1122.severity = none
170+
dotnet_diagnostic.SA1300.severity = none
171+
dotnet_diagnostic.SA1507.severity = none
172+
dotnet_diagnostic.SA1601.severity = none
173+
dotnet_diagnostic.SA1649.severity = none
174+
175+
dotnet_naming_symbols.test_methods.applicable_kinds = class, method
176+
dotnet_naming_symbols.test_methods.applicable_accessibilities = public
177+
178+
dotnet_naming_style.test_methods.capitalization = all_lower
179+
dotnet_naming_style.test_methods.word_separator = _
180+
181+
dotnet_naming_rule.test_methods.style = test_methods
182+
dotnet_naming_rule.test_methods.symbols = test_methods
183+
dotnet_naming_rule.test_methods.severity = error

Diff for: .gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

Diff for: .gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# ignore visual studio folders and files
2+
*.suo
3+
*.user
4+
*.userosscache
5+
*.sln.docstates
6+
$tf/
7+
.vs/
8+
*.[Cc]ache
9+
!*.[Cc]ache/
10+
_UpgradeReport_Files/
11+
Backup*/
12+
UpgradeLog*.XML
13+
UpgradeLog*.htm
14+
15+
# ignore build outputs
16+
[Dd]ebug/
17+
[Rr]elease/
18+
x64/
19+
x86/
20+
[Bb]in/
21+
[Oo]bj/
22+
[Ff]akes[Aa]ssemblies/
23+
*.binlog
24+
25+
# ignore nuget packages folder
26+
/packages
27+
/NuGet
28+
29+
# ignore generated html files
30+
*.htm
31+
32+
# Visual Studio test runner
33+
[Tt]est[Rr]esult*/
34+
[Ii]ndex.dat
35+
[Ss]torage.dat
36+
37+
# .NET CLI
38+
project.lock.json
39+
artifacts/
40+
41+
# Visual Studio profiler
42+
*.psess
43+
*.vsp
44+
*.vspx
45+
46+
# ReSharper folders and files
47+
_ReSharper*/
48+
*.[Rr]e[Ss]harper
49+
*.DotSettings.user
50+
51+
# NCrunch folders and files
52+
_NCrunch_*/
53+
_NCrunch_*
54+
*.ncrunch*

Diff for: CONTRIBUTING.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# How to contribute
2+
3+
One of the easiest ways to contribute is to participate in [discussions](../../discussions) or filing [issues](../../issues) for problems you encounter. You can also contribute by submitting pull requests with code changes.
4+
5+
## General feedback and discussions?
6+
7+
Please start a [discussion](../../discussions) or go to the [repo issue tracker](../../issues). Not sure which one to choose? Discussions are an open forum that serve as a repository to search through. While questions or suggestions can be achieved through an issue, they will eventually be closed for maintenance purposes. Searching through closed issues makes it more difficult for the community to discover.
8+
9+
## Bugs and feature requests?
10+
11+
Please log a new [issue](../../issues).
12+
13+
## Contributing code and content
14+
15+
### Identifying the scale
16+
17+
If you would like to contribute to the repository, first identify the scale of what you would like to contribute. If it is small (grammar/spelling or a bug fix) feel free to start working on a fix. If you are submitting a feature or substantial code contribution, please discuss it with the team and ensure it follows the product roadmap. You might also read these two blogs posts on contributing code: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik. Note that all code submissions will be rigorously reviewed and tested by the team, and only those that meet an extremely high bar for quality, design, and roadmap will be merged into the source.
18+
19+
### Submitting a pull request
20+
21+
You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) when submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to follow the instructions provided by the CLA bot when you send the pull request. This needs to only be done once for any .NET Foundation OSS project.
22+
23+
If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. Make sure that the repository can build and that all tests pass. Familiarize yourself with the project workflow and our coding conventions. The coding and style guidelines are described and enforced by `.editorconfig` as well as .NET Compiler Platform analyzers. These tools will automatically override your default settings without changing your environment. Violations will cause the build to fail.
24+
25+
### Tests
26+
27+
- Tests need to be provided for every bug or feature that is completed.
28+
- Tests only need to be present for issues that need to be verified (e.g. not tasks)
29+
30+
### Feedback
31+
32+
Your pull request will now go through extensive checks by the subject matter experts on our team; please be patient. Update your pull request according to feedback until it is approved by one of the team members. After that, one of our team members may adjust the branch you merge into based on the expected release schedule.

Diff for: LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) .NET Foundation and contributors. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE

0 commit comments

Comments
 (0)