Skip to content

Commit d28b94c

Browse files
committed
Update README.md, SECURITY.md, CODEOWNERS, and others.
1 parent 5ba01c1 commit d28b94c

File tree

8 files changed

+446
-39
lines changed

8 files changed

+446
-39
lines changed

.editorconfig

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# editorconfig.org
2+
3+
# This file should be kept in sync across https://www.github.com/dotnet/wpf and dotnet-wpf-int repos.
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Default settings:
8+
# A newline ending every file
9+
# Use 4 spaces as indentation
10+
[*]
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 4
15+
16+
[project.json]
17+
indent_size = 2
18+
19+
# C# files
20+
[*.cs]
21+
# New line preferences
22+
csharp_new_line_before_open_brace = all
23+
csharp_new_line_before_else = true
24+
csharp_new_line_before_catch = true
25+
csharp_new_line_before_finally = true
26+
csharp_new_line_before_members_in_object_initializers = true
27+
csharp_new_line_before_members_in_anonymous_types = true
28+
csharp_new_line_between_query_expression_clauses = true
29+
30+
# Indentation preferences
31+
csharp_indent_block_contents = true
32+
csharp_indent_braces = false
33+
csharp_indent_case_contents = true
34+
csharp_indent_switch_labels = true
35+
csharp_indent_labels = one_less_than_current
36+
37+
# avoid this. unless absolutely necessary
38+
dotnet_style_qualification_for_field = false:suggestion
39+
dotnet_style_qualification_for_property = false:suggestion
40+
dotnet_style_qualification_for_method = false:suggestion
41+
dotnet_style_qualification_for_event = false:suggestion
42+
43+
# only use var when it's obvious what the variable type is
44+
csharp_style_var_for_built_in_types = false:none
45+
csharp_style_var_when_type_is_apparent = false:none
46+
csharp_style_var_elsewhere = false:suggestion
47+
48+
# use language keywords instead of BCL types
49+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
50+
dotnet_style_predefined_type_for_member_access = true:suggestion
51+
52+
# name all constant fields using PascalCase
53+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
54+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
55+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
56+
57+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
58+
dotnet_naming_symbols.constant_fields.required_modifiers = const
59+
60+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
61+
62+
# static fields should have s_ prefix
63+
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
64+
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
65+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
66+
67+
dotnet_naming_symbols.static_fields.applicable_kinds = field
68+
dotnet_naming_symbols.static_fields.required_modifiers = static
69+
70+
dotnet_naming_style.static_prefix_style.required_prefix = s_
71+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
72+
73+
# internal and private fields should be _camelCase
74+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
75+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
76+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
77+
78+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
79+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
80+
81+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
82+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
83+
84+
# Code style defaults
85+
dotnet_sort_system_directives_first = true
86+
csharp_preserve_single_line_blocks = true
87+
csharp_preserve_single_line_statements = false
88+
89+
# Expression-level preferences
90+
dotnet_style_object_initializer = true:suggestion
91+
dotnet_style_collection_initializer = true:suggestion
92+
dotnet_style_explicit_tuple_names = true:suggestion
93+
dotnet_style_coalesce_expression = true:suggestion
94+
dotnet_style_null_propagation = true:suggestion
95+
96+
# Expression-bodied members
97+
csharp_style_expression_bodied_methods = false:none
98+
csharp_style_expression_bodied_constructors = false:none
99+
csharp_style_expression_bodied_operators = false:none
100+
csharp_style_expression_bodied_properties = true:none
101+
csharp_style_expression_bodied_indexers = true:none
102+
csharp_style_expression_bodied_accessors = true:none
103+
104+
# Pattern matching
105+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
106+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
107+
csharp_style_inlined_variable_declaration = true:suggestion
108+
109+
# Null checking preferences
110+
csharp_style_throw_expression = true:suggestion
111+
csharp_style_conditional_delegate_call = true:suggestion
112+
113+
# Space preferences
114+
csharp_space_after_cast = false
115+
csharp_space_after_colon_in_inheritance_clause = true
116+
csharp_space_after_comma = true
117+
csharp_space_after_dot = false
118+
csharp_space_after_keywords_in_control_flow_statements = true
119+
csharp_space_after_semicolon_in_for_statement = true
120+
csharp_space_around_binary_operators = before_and_after
121+
csharp_space_around_declaration_statements = do_not_ignore
122+
csharp_space_before_colon_in_inheritance_clause = true
123+
csharp_space_before_comma = false
124+
csharp_space_before_dot = false
125+
csharp_space_before_open_square_brackets = false
126+
csharp_space_before_semicolon_in_for_statement = false
127+
csharp_space_between_empty_square_brackets = false
128+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
129+
csharp_space_between_method_call_name_and_opening_parenthesis = false
130+
csharp_space_between_method_call_parameter_list_parentheses = false
131+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
132+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
133+
csharp_space_between_method_declaration_parameter_list_parentheses = false
134+
csharp_space_between_parentheses = false
135+
csharp_space_between_square_brackets = false
136+
137+
# C++ Files
138+
[*.{cpp,h,in}]
139+
curly_bracket_next_line = true
140+
indent_brace_style = Allman
141+
142+
# Visual Studio Solution files
143+
[*.sln]
144+
end_of_line = lf
145+
146+
# Xml project files
147+
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
148+
indent_size = 2
149+
150+
# Xml build files
151+
[*.builds]
152+
indent_size = 2
153+
154+
# Xml files
155+
[*.{xml,stylecop,resx,ruleset}]
156+
indent_size = 2
157+
158+
# Xml config files
159+
[*.{props,targets,config,nuspec}]
160+
indent_size = 2
161+
162+
# Shell scripts
163+
[*.sh]
164+
end_of_line = lf
165+
[*.{cmd, bat}]
166+
end_of_line = crlf

.gitattributes

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
*.doc binary
5+
*.DOC binary
6+
*.docx binary
7+
*.DOCX binary
8+
*.dot binary
9+
*.DOT binary
10+
*.pdf binary
11+
*.PDF binary
12+
*.rtf binary
13+
*.RTF binary
14+
15+
*.jpg binary
16+
*.png binary
17+
*.gif binary
18+
19+
# Force bash scripts to always use lf line endings so that if a repo is accessed
20+
# in Unix via a file share from Windows, the scripts will work.
21+
*.in text eol=lf
22+
*.sh text eol=lf
23+
24+
# Likewise, force cmd and batch scripts to always use crlf
25+
*.cmd text eol=crlf
26+
*.bat text eol=crlf
27+
28+
*.cs text=auto diff=csharp
29+
*.vb text=auto
30+
*.resx text=auto
31+
*.c text=auto
32+
*.cpp text=auto
33+
*.cxx text=auto
34+
*.h text=auto
35+
*.hxx text=auto
36+
*.py text=auto
37+
*.rb text=auto
38+
*.java text=auto
39+
*.html text=auto
40+
*.htm text=auto
41+
*.css text=auto
42+
*.scss text=auto
43+
*.sass text=auto
44+
*.less text=auto
45+
*.js text=auto
46+
*.lisp text=auto
47+
*.clj text=auto
48+
*.sql text=auto
49+
*.php text=auto
50+
*.lua text=auto
51+
*.m text=auto
52+
*.asm text=auto
53+
*.erl text=auto
54+
*.fs text=auto
55+
*.fsx text=auto
56+
*.hs text=auto
57+
58+
*.csproj text=auto
59+
*.vbproj text=auto
60+
*.fsproj text=auto
61+
*.dbproj text=auto
62+
*.sln text=auto eol=crlf
63+
64+
# Set linguist language for .h files explicitly based on
65+
# https://github.com/github/linguist/issues/1626#issuecomment-401442069
66+
# this only affects the repo's language statistics
67+
*.h linguist-language=C

0 commit comments

Comments
 (0)