Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit d56ff27

Browse files
committed
Initial
README.md README.md
0 parents  commit d56ff27

37 files changed

+6044
-0
lines changed

.editorconfig

+200
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
# .NET coding convention settings for EditorConfig
3+
# https://learn.microsoft.com/visualstudio/ide/editorconfig-code-style-settings-reference
4+
#
5+
# This file comes from dotnet repositories:
6+
# https://github.com/dotnet/runtime/blob/master/.editorconfig
7+
# https://github.com/dotnet/roslyn/blob/master/.editorconfig
8+
9+
# Top-most EditorConfig file
10+
root = true
11+
12+
[*]
13+
charset = utf-8
14+
# indent_size intentionally not specified in this section
15+
indent_style = space
16+
insert_final_newline = true
17+
18+
# Source code
19+
[*.{cs,ps1,psd1,psm1}]
20+
indent_size = 4
21+
22+
# Shell scripts
23+
[*.sh]
24+
end_of_line = lf
25+
indent_size = 4
26+
27+
# Xml project files
28+
[*.{csproj,resx,ps1xml}]
29+
indent_size = 2
30+
31+
# Data serialization
32+
[*.{json,yaml,yml}]
33+
indent_size = 2
34+
35+
# Markdown
36+
[*.md]
37+
indent_size = 2
38+
39+
# Xml files
40+
[*.{resx,ruleset,stylecop,xml,xsd,xsl}]
41+
indent_size = 2
42+
43+
# Xml config files
44+
[*.{props,targets,config,nuspec}]
45+
indent_size = 2
46+
47+
[*.tsv]
48+
indent_style = tab
49+
50+
# Dotnet code style settings:
51+
[*.cs]
52+
# Sort using and Import directives with System.* appearing first
53+
dotnet_sort_system_directives_first = true
54+
55+
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.
56+
57+
# Modifier preferences
58+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
59+
60+
# Avoid "this." and "Me." if not necessary
61+
dotnet_style_qualification_for_field = false:suggestion
62+
dotnet_style_qualification_for_property = false:suggestion
63+
dotnet_style_qualification_for_method = false:suggestion
64+
dotnet_style_qualification_for_event = false:suggestion
65+
66+
# Use language keywords instead of framework type names for type references
67+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
68+
dotnet_style_predefined_type_for_member_access = true:suggestion
69+
70+
# Name all constant fields using PascalCase
71+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
72+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
73+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
74+
75+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
76+
dotnet_naming_symbols.constant_fields.required_modifiers = const
77+
78+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
79+
80+
# Static fields should have s_ prefix
81+
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
82+
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
83+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
84+
85+
dotnet_naming_symbols.static_fields.applicable_kinds = field
86+
dotnet_naming_symbols.static_fields.required_modifiers = static
87+
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
88+
89+
dotnet_naming_style.static_prefix_style.required_prefix = s_
90+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
91+
92+
# Internal and private fields should be _camelCase
93+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
94+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
95+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
96+
97+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
98+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
99+
100+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
101+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
102+
103+
# Suggest more modern language features when available
104+
dotnet_style_object_initializer = true:suggestion
105+
dotnet_style_collection_initializer = true:suggestion
106+
dotnet_style_coalesce_expression = true:suggestion
107+
dotnet_style_null_propagation = true:suggestion
108+
dotnet_style_explicit_tuple_names = true:suggestion
109+
dotnet_style_readonly_field = true:suggestion
110+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
111+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
112+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
113+
dotnet_style_prefer_conditional_expression_over_return = true:silent
114+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
115+
dotnet_style_prefer_auto_properties = true:suggestion
116+
csharp_prefer_simple_default_expression = true:suggestion
117+
118+
dotnet_code_quality_unused_parameters = non_public:suggestion
119+
120+
# CSharp code style settings:
121+
[*.cs]
122+
123+
csharp_preserve_single_line_blocks = true
124+
csharp_preserve_single_line_statements = false
125+
csharp_prefer_braces = true:silent
126+
127+
csharp_prefer_static_local_function = true:suggestion
128+
csharp_prefer_simple_using_statement = false:none
129+
csharp_style_prefer_switch_expression = true:suggestion
130+
csharp_style_prefer_range_operator = false:none
131+
csharp_style_prefer_index_operator = false:none
132+
csharp_style_pattern_local_over_anonymous_function = false:none
133+
134+
csharp_using_directive_placement = outside_namespace:suggestion
135+
136+
# Indentation preferences
137+
csharp_indent_block_contents = true
138+
csharp_indent_braces = false
139+
csharp_indent_case_contents = true
140+
csharp_indent_case_contents_when_block = true
141+
csharp_indent_switch_labels = true
142+
csharp_indent_labels = one_less_than_current
143+
144+
# Only use var when it's obvious what the variable type is
145+
csharp_style_var_for_built_in_types = false:none
146+
csharp_style_var_when_type_is_apparent = false:none
147+
csharp_style_var_elsewhere = false:suggestion
148+
149+
# Expression-bodied members
150+
csharp_style_expression_bodied_local_functions = true:silent
151+
152+
# Prefer method-like constructs to have a block body
153+
csharp_style_expression_bodied_methods = false:none
154+
csharp_style_expression_bodied_constructors = false:none
155+
csharp_style_expression_bodied_operators = false:none
156+
157+
# Prefer property-like constructs to have an expression-body
158+
csharp_style_expression_bodied_properties = true:none
159+
csharp_style_expression_bodied_indexers = true:none
160+
csharp_style_expression_bodied_accessors = true:none
161+
162+
# Suggest more modern language features when available
163+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
164+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
165+
csharp_style_inlined_variable_declaration = true:suggestion
166+
csharp_style_throw_expression = true:suggestion
167+
csharp_style_conditional_delegate_call = true:suggestion
168+
169+
# Space preferences
170+
csharp_space_after_cast = false
171+
csharp_space_after_colon_in_inheritance_clause = true
172+
csharp_space_after_comma = true
173+
csharp_space_after_dot = false
174+
csharp_space_after_keywords_in_control_flow_statements = true
175+
csharp_space_after_semicolon_in_for_statement = true
176+
csharp_space_around_binary_operators = before_and_after
177+
csharp_space_around_declaration_statements = do_not_ignore
178+
csharp_space_before_colon_in_inheritance_clause = true
179+
csharp_space_before_comma = false
180+
csharp_space_before_dot = false
181+
csharp_space_before_open_square_brackets = false
182+
csharp_space_before_semicolon_in_for_statement = false
183+
csharp_space_between_empty_square_brackets = false
184+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
185+
csharp_space_between_method_call_name_and_opening_parenthesis = false
186+
csharp_space_between_method_call_parameter_list_parentheses = false
187+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
188+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
189+
csharp_space_between_method_declaration_parameter_list_parentheses = false
190+
csharp_space_between_parentheses = false
191+
csharp_space_between_square_brackets = false
192+
193+
# Newline settings
194+
csharp_new_line_before_open_brace = all
195+
csharp_new_line_before_else = true
196+
csharp_new_line_before_catch = true
197+
csharp_new_line_before_finally = true
198+
csharp_new_line_before_members_in_object_initializers = true
199+
csharp_new_line_before_members_in_anonymous_types = true
200+
csharp_new_line_between_query_expression_clauses = true

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CHANGELOG.md merge=union
2+
* text=auto
3+
*.png binary
4+
*.rtf binary
5+
*.sh text eol=lf
6+
testablescript.ps1 text eol=lf
7+
TestFileCatalog.txt text eol=lf

.gitignore

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
bin/
2+
obj/
3+
.ionide/
4+
project.lock.json
5+
*-tests.xml
6+
/debug/
7+
/staging/
8+
/Packages/
9+
*.nuget.props
10+
11+
# dotnet cli install/uninstall scripts
12+
dotnet-install.ps1
13+
dotnet-install.sh
14+
dotnet-uninstall-pkgs.sh
15+
dotnet-uninstall-debian-packages.sh
16+
17+
# VS auto-generated solution files for project.json solutions
18+
*.xproj
19+
*.xproj.user
20+
*.suo
21+
22+
# VS auto-generated files for csproj files
23+
*.csproj.user
24+
25+
# Visual Studio IDE directory
26+
.vs/
27+
28+
# VSCode directories that are not at the repository root
29+
/**/.vscode/
30+
31+
# Project Rider IDE files
32+
.idea.powershell/
33+
34+
# Ignore executables
35+
*.exe
36+
*.msi
37+
*.appx
38+
*.msix
39+
40+
# Ignore binaries and symbols
41+
*.pdb
42+
*.dll
43+
*.wixpdb
44+
45+
# Ignore packages
46+
*.deb
47+
*.tar.gz
48+
*.zip
49+
*.rpm
50+
*.pkg
51+
*.nupkg
52+
*.AppImage
53+
54+
# default location for produced nuget packages
55+
/nuget-artifacts
56+
57+
# resgen output
58+
gen
59+
60+
# Per repo profile
61+
.profile.ps1
62+
63+
# macOS
64+
.DS_Store
65+
.DocumentRevisions-V100
66+
.fseventsd
67+
.Spotlight-V100
68+
.TemporaryItems
69+
.Trashes
70+
.VolumeIcon.icns
71+
.com.apple.timemachine.donotpresent
72+
.AppleDB
73+
.AppleDesktop
74+
Network Trash Folder
75+
Temporary Items
76+
.apdisk
77+
.AppleDouble
78+
.LSOverride
79+
80+
# TestsResults
81+
TestsResults*.xml
82+
ParallelXUnitResults.xml
83+
xUnitResults.xml
84+
85+
# Resharper settings
86+
PowerShell.sln.DotSettings.user
87+
*.msp
88+
StyleCop.Cache
89+
90+
# Ignore SelfSignedCertificate autogenerated files
91+
test/tools/Modules/SelfSignedCertificate/
92+
93+
# BenchmarkDotNet artifacts
94+
test/perf/BenchmarkDotNet.Artifacts/
95+
96+
# Test generated module
97+
test/tools/Modules/Microsoft.PowerShell.NamedPipeConnection/
98+
99+
# Test generated startup profile
100+
StartupProfileData-NonInteractive
101+
102+
# Ignore logfiles
103+
logfile/*

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
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)